diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-23 07:02:59 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-23 07:02:59 +0000 |
commit | c2049caa254a0391cd7b5713ddf6e17cc7b3392c (patch) | |
tree | 9142f83b6747c0f326b3c824c8a2fa3b98a55b2a /MdePkg/Library/BaseLib/X64/DisablePaging64.S | |
parent | 852f5d9673d9a352edb5cfb81980a5d105670a7c (diff) | |
download | edk2-platforms-c2049caa254a0391cd7b5713ddf6e17cc7b3392c.tar.xz |
Update GCC assembly files for MdePkg/Library/BaseLib/X64
1. Fix bugs in assembly instructions
2. Change module names in comments from .asm to .S
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6196 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/X64/DisablePaging64.S')
-rw-r--r-- | MdePkg/Library/BaseLib/X64/DisablePaging64.S | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/MdePkg/Library/BaseLib/X64/DisablePaging64.S b/MdePkg/Library/BaseLib/X64/DisablePaging64.S index 4ca4145fa2..7a543febab 100644 --- a/MdePkg/Library/BaseLib/X64/DisablePaging64.S +++ b/MdePkg/Library/BaseLib/X64/DisablePaging64.S @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ # -# Copyright (c) 2006, Intel Corporation +# Copyright (c) 2006 - 2008, Intel Corporation # All rights reserved. This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at @@ -39,14 +39,13 @@ ASM_PFX(InternalX86DisablePaging64): cli shl $0x20,%rcx - lea (%rip), %eax - mov %eax,%ecx - push %rcx - mov %edx,%ebx - mov %r8d,%esi - mov %r9d,%edi - mov 0x28(%rsp),%eax - lret + lea L1, %eax + mov %r8d, %esi
+ or %rax, %rcx
+ mov %r9d, %edi
+ mov 0x28(%rsp), %eax
+ push %rcx
+ ret
L1: mov %eax,%esp mov %cr0,%rax @@ -61,6 +60,6 @@ L1: mov %rax,%cr4 push %rdi push %rsi - callq *%rbx + callq *%rdx jmp . |