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 %rcx
popq %rax # restore all volatile registers popq %rax # restore all volatile registers
jnz L1 jnz L1
jmp ASM_PFX(mOriginalHandler) jmpq *ASM_PFX(mOriginalHandler)
L1: L1:
addq $0x08, %rsp # skip error code for PF addq $0x08, %rsp # skip error code for PF
iretq iretq

View File

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