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
This commit is contained in:
parent
852f5d9673
commit
c2049caa25
@ -1,6 +1,6 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006, Intel Corporation
|
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# 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
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# Module Name:
|
# Module Name:
|
||||||
#
|
#
|
||||||
# CpuIdEx.Asm
|
# CpuIdEx.S
|
||||||
#
|
#
|
||||||
# Abstract:
|
# Abstract:
|
||||||
#
|
#
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006, Intel Corporation
|
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# 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
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -39,14 +39,13 @@
|
|||||||
ASM_PFX(InternalX86DisablePaging64):
|
ASM_PFX(InternalX86DisablePaging64):
|
||||||
cli
|
cli
|
||||||
shl $0x20,%rcx
|
shl $0x20,%rcx
|
||||||
lea (%rip), %eax
|
lea L1, %eax
|
||||||
mov %eax,%ecx
|
|
||||||
push %rcx
|
|
||||||
mov %edx,%ebx
|
|
||||||
mov %r8d, %esi
|
mov %r8d, %esi
|
||||||
|
or %rax, %rcx
|
||||||
mov %r9d, %edi
|
mov %r9d, %edi
|
||||||
mov 0x28(%rsp), %eax
|
mov 0x28(%rsp), %eax
|
||||||
lret
|
push %rcx
|
||||||
|
ret
|
||||||
L1:
|
L1:
|
||||||
mov %eax,%esp
|
mov %eax,%esp
|
||||||
mov %cr0,%rax
|
mov %cr0,%rax
|
||||||
@ -61,6 +60,6 @@ L1:
|
|||||||
mov %rax,%cr4
|
mov %rax,%cr4
|
||||||
push %rdi
|
push %rdi
|
||||||
push %rsi
|
push %rsi
|
||||||
callq *%rbx
|
callq *%rdx
|
||||||
jmp .
|
jmp .
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006, Intel Corporation
|
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# 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
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -31,6 +31,6 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmFlushCacheLine)
|
.global ASM_PFX(AsmFlushCacheLine)
|
||||||
ASM_PFX(AsmFlushCacheLine):
|
ASM_PFX(AsmFlushCacheLine):
|
||||||
clflush (%rdi)
|
clflush (%rcx)
|
||||||
mov %rdi, %rax
|
mov %rcx, %rax
|
||||||
ret
|
ret
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006, Intel Corporation
|
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# 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
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# Module Name:
|
# Module Name:
|
||||||
#
|
#
|
||||||
# InterlockedCompareExchange32.Asm
|
# InterlockedCompareExchange32.S
|
||||||
#
|
#
|
||||||
# Abstract:
|
# Abstract:
|
||||||
#
|
#
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006, Intel Corporation
|
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# 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
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -34,6 +34,6 @@
|
|||||||
.global ASM_PFX(InternalSyncCompareExchange64)
|
.global ASM_PFX(InternalSyncCompareExchange64)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(InternalSyncCompareExchange64):
|
ASM_PFX(InternalSyncCompareExchange64):
|
||||||
mov %rsi, %rax
|
mov %rdx, %rax
|
||||||
lock cmpxchg %rdx,(%rdi)
|
lock cmpxchg %r8,(%rcx)
|
||||||
ret
|
ret
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# Module Name:
|
# Module Name:
|
||||||
#
|
#
|
||||||
# LongJump.Asm
|
# LongJump.S
|
||||||
#
|
#
|
||||||
# Abstract:
|
# Abstract:
|
||||||
#
|
#
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006, Intel Corporation
|
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# 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
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm0)
|
.global ASM_PFX(AsmWriteMm0)
|
||||||
ASM_PFX(AsmWriteMm0):
|
ASM_PFX(AsmWriteMm0):
|
||||||
movd %rcx, %xmm0
|
movd %rcx, %mm0
|
||||||
ret
|
ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user