summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/X64
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-25 02:49:23 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-25 02:49:23 +0000
commit04fdba541287ba2759ce3e51157c38148ad8b4f6 (patch)
tree37d2fc8a86b7401aee5e8ee1ffe853b21f4db71a /MdePkg/Library/BaseLib/X64
parentdc8577f2756004a71def12afd21272aeaaca950b (diff)
downloadedk2-platforms-04fdba541287ba2759ce3e51157c38148ad8b4f6.tar.xz
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
Diffstat (limited to 'MdePkg/Library/BaseLib/X64')
-rw-r--r--MdePkg/Library/BaseLib/X64/DisableCache.S8
-rw-r--r--MdePkg/Library/BaseLib/X64/EnableCache.S8
2 files changed, 8 insertions, 8 deletions
diff --git a/MdePkg/Library/BaseLib/X64/DisableCache.S b/MdePkg/Library/BaseLib/X64/DisableCache.S
index 44f82bbe52..678290888e 100644
--- a/MdePkg/Library/BaseLib/X64/DisableCache.S
+++ b/MdePkg/Library/BaseLib/X64/DisableCache.S
@@ -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
diff --git a/MdePkg/Library/BaseLib/X64/EnableCache.S b/MdePkg/Library/BaseLib/X64/EnableCache.S
index 99257d6527..5c28b43857 100644
--- a/MdePkg/Library/BaseLib/X64/EnableCache.S
+++ b/MdePkg/Library/BaseLib/X64/EnableCache.S
@@ -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