]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Csm/LegacyBiosDxe/Thunk.c
OvmfPkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
[mirror_edk2.git] / OvmfPkg / Csm / LegacyBiosDxe / Thunk.c
index d9828bb2f894a23c979533e3f2be40dfd71011a9..dd706fbd6e237fef18ca35cbf80dce6015ad10eb 100644 (file)
@@ -228,7 +228,7 @@ InternalLegacyBiosFarCall (
   // interupts other than the Timer interrupt that was disabled above can not be\r
   // handled properly from real mode.\r
   //\r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     UINTN  Vector;\r
     UINTN  Count;\r
 \r
@@ -245,7 +245,7 @@ InternalLegacyBiosFarCall (
       DEBUG ((DEBUG_ERROR, "ERROR: More than one HW interrupt active with CSM enabled\n"));\r
     }\r
     ASSERT (Count < 2);\r
-  );\r
+  DEBUG_CODE_END ();\r
 \r
   //\r
   // If the Timer AP has enabled the 8254 timer IRQ and the current 8254 timer\r
@@ -310,7 +310,7 @@ InternalLegacyBiosFarCall (
   // EBDA base address, if the current EBDA base address is smaller, it indicates\r
   // PcdEbdaReservedMemorySize should be adjusted to larger for more OPROMs.\r
   //\r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     {\r
       UINTN                 EbdaBaseAddress;\r
       UINTN                 ReservedEbdaBaseAddress;\r
@@ -322,7 +322,7 @@ InternalLegacyBiosFarCall (
         ASSERT (ReservedEbdaBaseAddress <= EbdaBaseAddress);\r
       );\r
     }\r
-  );\r
+  DEBUG_CODE_END ();\r
 \r
   //\r
   // Restore interrupt of debug timer\r