]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.nasm
UefiCpuPkg: Fix nasm warning "signed byte value exceeds"
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / Ia32 / ExceptionHandlerAsm.nasm
index 8ed2b8f45500fe3e2243b489b40b748119294905..31a00449a283c8eee0307b9bc51c111171e59d2d 100644 (file)
@@ -34,7 +34,7 @@ ALIGN   8
 AsmIdtVectorBegin:\r
 %assign Vector 0\r
 %rep  256\r
-    push    byte %[Vector];\r
+    push    strict dword %[Vector];\r
     push    eax\r
     mov     eax, ASM_PFX(CommonInterruptEntry)\r
     jmp     eax\r
@@ -43,9 +43,8 @@ AsmIdtVectorBegin:
 AsmIdtVectorEnd:\r
 \r
 HookAfterStubBegin:\r
-    db      0x6a        ; push\r
+    push    strict dword 0  ; 0 will be fixed\r
 VectorNum:\r
-    db      0          ; 0 will be fixed\r
     push    eax\r
     mov     eax, HookAfterStubHeaderEnd\r
     jmp     eax\r
@@ -453,5 +452,5 @@ global ASM_PFX(AsmVectorNumFixup)
 ASM_PFX(AsmVectorNumFixup):\r
     mov     eax, dword [esp + 8]\r
     mov     ecx, [esp + 4]\r
-    mov     [ecx + (VectorNum - HookAfterStubBegin)], al\r
+    mov     [ecx + (VectorNum - 4 - HookAfterStubBegin)], al\r
     ret\r