]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/SetJump.asm
1. Updated SetJump() and LongJump() for IPF
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / SetJump.asm
index 41277cd20f5422a11e9dae93d9c6f1b9f5efca6d..7d8579c9b9cc20ad955436e1aba067b811a28592 100644 (file)
 ;------------------------------------------------------------------------------\r
 \r
     .386\r
-    .model  flat\r
+    .model  flat,C\r
     .code\r
 \r
-_SetJump    PROC\r
+InternalAssertJumpBuffer    PROTO   C\r
+\r
+SetJump     PROC\r
+    push    [esp + 4]\r
+    call    InternalAssertJumpBuffer\r
+    pop     ecx\r
     pop     ecx\r
     mov     edx, [esp]\r
     mov     [edx], ebx\r
@@ -34,6 +39,6 @@ _SetJump    PROC
     mov     [edx + 20], ecx\r
     xor     eax, eax\r
     jmp     ecx\r
-_SetJump    ENDP\r
+SetJump     ENDP\r
 \r
     END\r