From c8c640f45e7bd49a757599a8c8245cd3ea9aa0cf Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 5 Nov 2025 10:44:52 +0300 Subject: [PATCH] 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 --- .../CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm index 4863686f14..a48897fb49 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm @@ -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