mirror of https://github.com/acidanthera/audk.git
Fix minor issues in GCC assembly. The operand is 64bit and "q" prefix should be applied.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6717 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dc8577f275
commit
04fdba5412
|
@ -31,9 +31,9 @@
|
|||
#------------------------------------------------------------------------------
|
||||
.globl ASM_PFX(AsmDisableCache)
|
||||
ASM_PFX(AsmDisableCache):
|
||||
movl %cr0, %rax
|
||||
btsl $30, %rax
|
||||
btrl $29, %rax
|
||||
movl %rax, %cr0
|
||||
movq %cr0, %rax
|
||||
btsq $30, %rax
|
||||
btrq $29, %rax
|
||||
movq %rax, %cr0
|
||||
wbinvd
|
||||
ret
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
.globl ASM_PFX(AsmEnableCache)
|
||||
ASM_PFX(AsmEnableCache):
|
||||
wbinvd
|
||||
movl %cr0, %rax
|
||||
btrl $30, %rax
|
||||
btrl $29, %rax
|
||||
movl %rax, %cr0
|
||||
movq %cr0, %rax
|
||||
btrq $30, %rax
|
||||
btrq $29, %rax
|
||||
movq %rax, %cr0
|
||||
ret
|
||||
|
|
Loading…
Reference in New Issue