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:
@@ -32,8 +32,8 @@
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
AsmWriteMsr64 PROC
|
||||
mov rax, rdx
|
||||
shr rdx, 20h
|
||||
mov rax, rdx ; meanwhile, rax <- return value
|
||||
shr rdx, 20h ; edx:eax contains the value to write
|
||||
wrmsr
|
||||
ret
|
||||
AsmWriteMsr64 ENDP
|
||||
|
Reference in New Issue
Block a user