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:
qhuang8 2008-11-25 02:49:23 +00:00
parent dc8577f275
commit 04fdba5412
2 changed files with 8 additions and 8 deletions

View File

@ -31,9 +31,9 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl ASM_PFX(AsmDisableCache) .globl ASM_PFX(AsmDisableCache)
ASM_PFX(AsmDisableCache): ASM_PFX(AsmDisableCache):
movl %cr0, %rax movq %cr0, %rax
btsl $30, %rax btsq $30, %rax
btrl $29, %rax btrq $29, %rax
movl %rax, %cr0 movq %rax, %cr0
wbinvd wbinvd
ret ret

View File

@ -32,8 +32,8 @@
.globl ASM_PFX(AsmEnableCache) .globl ASM_PFX(AsmEnableCache)
ASM_PFX(AsmEnableCache): ASM_PFX(AsmEnableCache):
wbinvd wbinvd
movl %cr0, %rax movq %cr0, %rax
btrl $30, %rax btrq $30, %rax
btrl $29, %rax btrq $29, %rax
movl %rax, %cr0 movq %rax, %cr0
ret ret