From 04fdba541287ba2759ce3e51157c38148ad8b4f6 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 25 Nov 2008 02:49:23 +0000 Subject: [PATCH] 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 --- MdePkg/Library/BaseLib/X64/DisableCache.S | 8 ++++---- MdePkg/Library/BaseLib/X64/EnableCache.S | 8 ++++---- 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