]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/Thunk16.nasm
MdePkg NASM Thunk16: Work around NASM 2.09.04 - 2.10rc1 bug
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / Thunk16.nasm
index e8468a3fbfb67b7eff97c378d4a51aac6fc40804..e3d0d4e4173858dd29694c16067397b2f2510d05 100644 (file)
@@ -85,7 +85,11 @@ _BackFromUserCode:
 BITS    16\r
     push    ss\r
     push    cs\r
-o32 call    dword .Base                 ; push eip\r
+    ;\r
+    ; Note: We can't use o32 on the next instruction because of a bug\r
+    ; in NASM 2.09.04 through 2.10rc1.\r
+    ;\r
+    call    dword .Base                 ; push eip\r
 .Base:\r
     pushfd\r
     cli                                 ; disable interrupts\r