mirror of https://github.com/acidanthera/audk.git
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:
parent
14c48571ae
commit
6a60f8cb11
|
@ -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
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
mOriginalHandler PROTO
|
||||
PageFaultHandler PROTO
|
||||
EXTERN mOriginalHandler:QWORD
|
||||
EXTERN PageFaultHandler:PROC
|
||||
|
||||
.code
|
||||
|
||||
|
@ -49,4 +49,4 @@ PageFaultHandlerHook PROC
|
|||
add rsp, 08h ; skip error code for PF
|
||||
iretq
|
||||
PageFaultHandlerHook ENDP
|
||||
END
|
||||
END
|
||||
|
|
Loading…
Reference in New Issue