diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-25 02:49:23 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-25 02:49:23 +0000 |
commit | 04fdba541287ba2759ce3e51157c38148ad8b4f6 (patch) | |
tree | 37d2fc8a86b7401aee5e8ee1ffe853b21f4db71a /MdePkg/Library/BaseLib/X64/EnableCache.S | |
parent | dc8577f2756004a71def12afd21272aeaaca950b (diff) | |
download | edk2-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/EnableCache.S')
-rw-r--r-- | MdePkg/Library/BaseLib/X64/EnableCache.S | 8 |
1 files changed, 4 insertions, 4 deletions
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
|