/* This function is to enable/disable BIOS Write Protect in SMM phase. */
VOID CpuSmmDisableBiosWriteProtect(IN BOOLEAN EnableSmmSts)
/* This function is to enable/disable BIOS Write Protect in SMM phase. */
VOID CpuSmmDisableBiosWriteProtect(IN BOOLEAN EnableSmmSts)
{
  UINT32  Data32;
  if (EnableSmmSts) {
    Data32 = MmioRead32 ((UINTN)(0xFED30880)) | (UINT32)(BIT0);
    AsmWriteMsr32 (0x000001FE, Data32);
  } else {
    Data32 = MmioRead32 ((UINTN)(0xFED30880)) & (UINT32)(~BIT0);
    AsmWriteMsr32 (0x000001FE, Data32);
  }
  Data32 = MmioRead32 (0xFED30880);
}