Please review this carefully. I'm not an expert on this. - bsc#1257495: NASM (3.00+) requires explicit size hints: Add ovmf-nasm3.patch OBS-URL: https://build.opensuse.org/request/show/1330391 OBS-URL: https://build.opensuse.org/package/show/Virtualization/ovmf?expand=0&rev=348
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
Index: edk2-edk2-stable202511/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
|
|
===================================================================
|
|
--- edk2-edk2-stable202511.orig/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
|
|
+++ edk2-edk2-stable202511/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
|
|
@@ -57,7 +57,7 @@ ALIGN 8
|
|
AsmIdtVectorBegin:
|
|
%assign Vector 0
|
|
%rep 256
|
|
- 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
|
|
%ifdef NO_ABSOLUTE_RELOCS_IN_TEXT
|
|
mov rax, strict qword 0 ; mov rax, ASM_PFX(CommonInterruptEntry)
|
|
@@ -70,7 +70,7 @@ AsmIdtVectorBegin:
|
|
AsmIdtVectorEnd:
|
|
|
|
HookAfterStubHeaderBegin:
|
|
- push strict dword 0 ; 0 will be fixed
|
|
+ push strict qword 0 ; 0 will be fixed
|
|
VectorNum:
|
|
push rax
|
|
%ifdef NO_ABSOLUTE_RELOCS_IN_TEXT
|