]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c
CSM is updated to remove RaiseTPL (TPL_HIGH_LEVEL) and disable 2 known UEFI interrupt...
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / LegacyBiosDxe / LegacyBootSupport.c
index 397295bcf1c3808be2d749c20e6cd96a078f6189..04013d9708cb5b5cd0897242f5ef19b7ebb8838a 100644 (file)
@@ -1204,10 +1204,17 @@ GenericLegacyBoot (
     //\r
     EfiSignalEventLegacyBoot ();\r
     DEBUG ((EFI_D_INFO, "Legacy INT19 Boot...\n"));\r
+\r
+    //\r
+    // Disable DXE Timer while executing in real mode\r
     //\r
-    // Raise TPL to high level to disable CPU interrupts\r
+    Private->Timer->SetTimerPeriod (Private->Timer, 0);\r
+    \r
     //\r
-    gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
+    // Save and disable interrupt of debug timer\r
+    //\r
+    SaveAndSetDebugTimerInterrupt (FALSE);\r
+\r
 \r
     //\r
     // Put the 8259 into its legacy mode by reprogramming the vector bases\r