/* Disable Write Protect on pages marked as read-only.  */
VOID DisableReadOnlyPageWriteProtect(VOID)
/* Disable Write Protect on pages marked as read-only.  */
VOID DisableReadOnlyPageWriteProtect(VOID)
{
  IA32_CR0  Cr0;
  if (!IsInSmm ()) {
    Cr0.UintN   = AsmReadCr0 ();
    Cr0.Bits.WP = 0;
    AsmWriteCr0 (Cr0.UintN);
  }
}