Skip to content

Commit e53fbb1

Browse files
committed
Add nasm 3.01 workaround
1 parent 1730a3d commit e53fbb1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ovmf.patch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,25 @@ index db4875e..6b7fa78 100644
239239
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
240240
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
241241
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
242+
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
243+
index 3d64ac9..9c3f01a 100644
244+
--- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
245+
+++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
246+
@@ -57,7 +57,7 @@ ALIGN 8
247+
AsmIdtVectorBegin:
248+
%assign Vector 0
249+
%rep 256
250+
- push strict dword %[Vector] ; This instruction pushes sign-extended 8-byte value on stack
251+
+ push strict qword %[Vector] ; This instruction pushes sign-extended 8-byte value on stack
252+
push rax
253+
%ifdef NO_ABSOLUTE_RELOCS_IN_TEXT
254+
mov rax, strict qword 0 ; mov rax, ASM_PFX(CommonInterruptEntry)
255+
@@ -70,7 +70,7 @@ AsmIdtVectorBegin:
256+
AsmIdtVectorEnd:
257+
258+
HookAfterStubHeaderBegin:
259+
- push strict dword 0 ; 0 will be fixed
260+
+ push strict qword 0 ; 0 will be fixed
261+
VectorNum:
262+
push rax
263+
%ifdef NO_ABSOLUTE_RELOCS_IN_TEXT

0 commit comments

Comments
 (0)