1. Added comments to ASM files
2. Fixed a bug in 64-bit AsmDisablePaging64(), which may cause a #GP exception. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2206 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
;------------------------------------------------------------------------------
|
||||
InternalX86EnablePaging64 PROC
|
||||
cli
|
||||
pop rax
|
||||
pop rax ; skip the return address
|
||||
call @Base
|
||||
@Base:
|
||||
add dword ptr [rsp], @F - @Base ; offset for far retf, seg is the 1st arg
|
||||
@@ -58,7 +58,7 @@ InternalX86EnablePaging64 PROC
|
||||
mov rsp, [esp + 18h]
|
||||
add rsp, -20h
|
||||
call rbx
|
||||
jmp $ ; halt processor if EntryPoint() returned
|
||||
hlt ; halt processor if EntryPoint() returned
|
||||
InternalX86EnablePaging64 ENDP
|
||||
|
||||
END
|
||||
|
Reference in New Issue
Block a user