UefiCpuPkg/CpuExceptionHandlerLib: fix push instructions

Nasm 3.0 complains about 'dword' being invalid.  The comment talks about
a '8-byte value' so 'qword' should be correct here.

Fixes: https://github.com/tianocore/edk2/issues/11635
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2025-11-05 10:44:52 +03:00 committed by Vitaly Cheptsov
parent 6c64f0c836
commit c8c640f45e

View File

@ -63,7 +63,7 @@ ALIGN 8
AsmIdtVectorBegin:
%assign Vector 0
%rep NUM_VECTORS
push strict dword %[Vector] ; This instruction pushes sign-extended 8-byte value on stack
push strict qword %[Vector] ; This instruction pushes sign-extended 8-byte value on stack
push rax
; This code is not copied, thus relative addressing is safe.
lea rax, [ASM_PFX(CommonInterruptEntry)]
@ -73,7 +73,7 @@ AsmIdtVectorBegin:
AsmIdtVectorEnd:
HookAfterStubHeaderBegin:
push strict dword 0 ; 0 will be fixed
push strict qword 0 ; 0 will be fixed
VectorNum:
push rax
; This code is copied, thus relative addressing would not be safe and we