Fix a bug in SmmBaseHelper driver that the JMP instruction which jumps to the original page fault handler is incorrect.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10681 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
rsun3 2010-07-22 06:29:29 +00:00
parent 14c48571ae
commit 6a60f8cb11
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ ASM_PFX(PageFaultHandlerHook):
popq %rcx
popq %rax # restore all volatile registers
jnz L1
jmp ASM_PFX(mOriginalHandler)
jmpq *ASM_PFX(mOriginalHandler)
L1:
addq $0x08, %rsp # skip error code for PF
iretq

View File

@ -19,8 +19,8 @@
;
;------------------------------------------------------------------------------
mOriginalHandler PROTO
PageFaultHandler PROTO
EXTERN mOriginalHandler:QWORD
EXTERN PageFaultHandler:PROC
.code