Remove unnecessary .align directives.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9161 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2009-08-20 08:39:01 +00:00
parent b341712e31
commit d82018184e
46 changed files with 46 additions and 92 deletions

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(EnableDisableInterrupts) .global ASM_PFX(EnableDisableInterrupts)
.align 16
ASM_PFX(EnableDisableInterrupts): ASM_PFX(EnableDisableInterrupts):
sti sti
cli cli

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -32,7 +32,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(InternalSyncCompareExchange64) .global ASM_PFX(InternalSyncCompareExchange64)
.align 16
ASM_PFX(InternalSyncCompareExchange64): ASM_PFX(InternalSyncCompareExchange64):
mov %rsi, %rax mov %rsi, %rax
lock cmpxchg %rdx,(%rdi) lock cmpxchg %rdx,(%rdi)

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -32,7 +32,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmMonitor) .global ASM_PFX(AsmMonitor)
.align 16
ASM_PFX(AsmMonitor): ASM_PFX(AsmMonitor):
mov %ecx,%eax mov %ecx,%eax
mov %edx,%ecx mov %edx,%ecx

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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,7 +31,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmMwait) .global ASM_PFX(AsmMwait)
.align 16
ASM_PFX(AsmMwait): ASM_PFX(AsmMwait):
mov %ecx,%eax mov %ecx,%eax
mov %edx,%ecx mov %edx,%ecx

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadCr0) .global ASM_PFX(AsmReadCr0)
.align 16
ASM_PFX(AsmReadCr0): ASM_PFX(AsmReadCr0):
mov %cr0, %rax mov %cr0, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadCr2) .global ASM_PFX(AsmReadCr2)
.align 16
ASM_PFX(AsmReadCr2): ASM_PFX(AsmReadCr2):
mov %cr2, %rax mov %cr2, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadCr3) .global ASM_PFX(AsmReadCr3)
.align 16
ASM_PFX(AsmReadCr3): ASM_PFX(AsmReadCr3):
mov %cr3, %rax mov %cr3, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadCr4) .global ASM_PFX(AsmReadCr4)
.align 16
ASM_PFX(AsmReadCr4): ASM_PFX(AsmReadCr4):
mov %cr4, %rax mov %cr4, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadCs) .global ASM_PFX(AsmReadCs)
.align 16
ASM_PFX(AsmReadCs): ASM_PFX(AsmReadCs):
mov %cs, %eax mov %cs, %eax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDr0) .global ASM_PFX(AsmReadDr0)
.align 16
ASM_PFX(AsmReadDr0): ASM_PFX(AsmReadDr0):
mov %dr0, %rax mov %dr0, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDr1) .global ASM_PFX(AsmReadDr1)
.align 16
ASM_PFX(AsmReadDr1): ASM_PFX(AsmReadDr1):
mov %dr1, %rax mov %dr1, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDr2) .global ASM_PFX(AsmReadDr2)
.align 16
ASM_PFX(AsmReadDr2): ASM_PFX(AsmReadDr2):
mov %dr2, %rax mov %dr2, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDr3) .global ASM_PFX(AsmReadDr3)
.align 16
ASM_PFX(AsmReadDr3): ASM_PFX(AsmReadDr3):
mov %dr3, %rax mov %dr3, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDr4) .global ASM_PFX(AsmReadDr4)
.align 16
ASM_PFX(AsmReadDr4): ASM_PFX(AsmReadDr4):
#DB 0fh, 21h, 0e0h #DB 0fh, 21h, 0e0h
mov %dr4, %rax mov %dr4, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDr5) .global ASM_PFX(AsmReadDr5)
.align 16
ASM_PFX(AsmReadDr5): ASM_PFX(AsmReadDr5):
mov %dr5, %rax mov %dr5, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDr6) .global ASM_PFX(AsmReadDr6)
.align 16
ASM_PFX(AsmReadDr6): ASM_PFX(AsmReadDr6):
mov %dr6, %rax mov %dr6, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDr7) .global ASM_PFX(AsmReadDr7)
.align 16
ASM_PFX(AsmReadDr7): ASM_PFX(AsmReadDr7):
mov %dr7, %rax mov %dr7, %rax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadDs) .global ASM_PFX(AsmReadDs)
.align 16
ASM_PFX(AsmReadDs): ASM_PFX(AsmReadDs):
movl %ds, %eax movl %ds, %eax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadEflags) .global ASM_PFX(AsmReadEflags)
.align 16
ASM_PFX(AsmReadEflags): ASM_PFX(AsmReadEflags):
pushfq pushfq
pop %rax pop %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadEs) .global ASM_PFX(AsmReadEs)
.align 16
ASM_PFX(AsmReadEs): ASM_PFX(AsmReadEs):
mov %es, %eax mov %es, %eax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadFs) .global ASM_PFX(AsmReadFs)
.align 16
ASM_PFX(AsmReadFs): ASM_PFX(AsmReadFs):
mov %fs, %eax mov %fs, %eax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(InternalX86ReadGdtr) .global ASM_PFX(InternalX86ReadGdtr)
.align 16
ASM_PFX(InternalX86ReadGdtr): ASM_PFX(InternalX86ReadGdtr):
sgdt (%rcx) sgdt (%rcx)
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadGs) .global ASM_PFX(AsmReadGs)
.align 16
ASM_PFX(AsmReadGs): ASM_PFX(AsmReadGs):
mov %gs, %eax mov %gs, %eax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(InternalX86ReadIdtr) .global ASM_PFX(InternalX86ReadIdtr)
.align 16
ASM_PFX(InternalX86ReadIdtr): ASM_PFX(InternalX86ReadIdtr):
sidt (%rcx) sidt (%rcx)
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadLdtr) .global ASM_PFX(AsmReadLdtr)
.align 16
ASM_PFX(AsmReadLdtr): ASM_PFX(AsmReadLdtr):
sldt %eax sldt %eax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMm0) .global ASM_PFX(AsmReadMm0)
.align 16
ASM_PFX(AsmReadMm0): ASM_PFX(AsmReadMm0):
#DB 48h, 0fh, 7eh, 0c0h #DB 48h, 0fh, 7eh, 0c0h
movd %mm0, %rax movd %mm0, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMm1) .global ASM_PFX(AsmReadMm1)
.align 16
ASM_PFX(AsmReadMm1): ASM_PFX(AsmReadMm1):
#DB 48h, 0fh, 7eh, 0c8h #DB 48h, 0fh, 7eh, 0c8h
movd %mm1, %rax movd %mm1, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMm2) .global ASM_PFX(AsmReadMm2)
.align 16
ASM_PFX(AsmReadMm2): ASM_PFX(AsmReadMm2):
#DB 48h, 0fh, 7eh, 0d0h #DB 48h, 0fh, 7eh, 0d0h
movd %mm2, %rax movd %mm2, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMm3) .global ASM_PFX(AsmReadMm3)
.align 16
ASM_PFX(AsmReadMm3): ASM_PFX(AsmReadMm3):
#DB 48h, 0fh, 7eh, 0d8h #DB 48h, 0fh, 7eh, 0d8h
movd %mm3, %rax movd %mm3, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMm4) .global ASM_PFX(AsmReadMm4)
.align 16
ASM_PFX(AsmReadMm4): ASM_PFX(AsmReadMm4):
#DB 48h, 0fh, 7eh, 0e0h #DB 48h, 0fh, 7eh, 0e0h
movd %mm4, %rax movd %mm4, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMm5) .global ASM_PFX(AsmReadMm5)
.align 16
ASM_PFX(AsmReadMm5): ASM_PFX(AsmReadMm5):
#DB 48h, 0fh, 7eh, 0e8h #DB 48h, 0fh, 7eh, 0e8h
movd %mm5, %rax movd %mm5, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMm6) .global ASM_PFX(AsmReadMm6)
.align 16
ASM_PFX(AsmReadMm6): ASM_PFX(AsmReadMm6):
#DB 48h, 0fh, 7eh, 0f0h #DB 48h, 0fh, 7eh, 0f0h
movd %mm6, %rax movd %mm6, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMm7) .global ASM_PFX(AsmReadMm7)
.align 16
ASM_PFX(AsmReadMm7): ASM_PFX(AsmReadMm7):
#DB 48h, 0fh, 7eh, 0f8h #DB 48h, 0fh, 7eh, 0f8h
movd %mm7, %rax movd %mm7, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadMsr64) .global ASM_PFX(AsmReadMsr64)
.align 16
ASM_PFX(AsmReadMsr64): ASM_PFX(AsmReadMsr64):
rdmsr # edx & eax are zero extended rdmsr # edx & eax are zero extended
shl $0x20, %rdx shl $0x20, %rdx

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadPmc) .global ASM_PFX(AsmReadPmc)
.align 16
ASM_PFX(AsmReadPmc): ASM_PFX(AsmReadPmc):
rdpmc rdpmc
shl $0x20, %rdx shl $0x20, %rdx

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadSs); .global ASM_PFX(AsmReadSs);
.align 16
ASM_PFX(AsmReadSs): ASM_PFX(AsmReadSs):
movl %ss, %eax movl %ss, %eax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadTr) .global ASM_PFX(AsmReadTr)
.align 16
ASM_PFX(AsmReadTr): ASM_PFX(AsmReadTr):
str %eax str %eax
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmReadTsc) .global ASM_PFX(AsmReadTsc)
.align 16
ASM_PFX(AsmReadTsc): ASM_PFX(AsmReadTsc):
rdtsc rdtsc
shl $0x20, %rdx shl $0x20, %rdx

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmWbinvd) .global ASM_PFX(AsmWbinvd)
.align 16
ASM_PFX(AsmWbinvd): ASM_PFX(AsmWbinvd):
wbinvd wbinvd
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteDr0) .global ASM_PFX(AsmWriteDr0)
.align 16
ASM_PFX(AsmWriteDr0): ASM_PFX(AsmWriteDr0):
mov %rcx, %dr0 mov %rcx, %dr0
mov %rcx, %rax mov %rcx, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteDr1) .global ASM_PFX(AsmWriteDr1)
.align 16
ASM_PFX(AsmWriteDr1): ASM_PFX(AsmWriteDr1):
mov %rcx, %dr1 mov %rcx, %dr1
mov %rcx, %rax mov %rcx, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteDr2) .global ASM_PFX(AsmWriteDr2)
.align 16
ASM_PFX(AsmWriteDr2): ASM_PFX(AsmWriteDr2):
mov %rcx, %dr2 mov %rcx, %dr2
mov %rcx, %rax mov %rcx, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteDr3) .global ASM_PFX(AsmWriteDr3)
.align 16
ASM_PFX(AsmWriteDr3): ASM_PFX(AsmWriteDr3):
mov %rcx, %dr3 mov %rcx, %dr3
mov %rcx, %rax mov %rcx, %rax

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(InternalX86WriteIdtr) .global ASM_PFX(InternalX86WriteIdtr)
.align 16
ASM_PFX(InternalX86WriteIdtr): ASM_PFX(InternalX86WriteIdtr):
lidt (%rcx) lidt (%rcx)
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -30,7 +30,6 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteLdtr); .global ASM_PFX(AsmWriteLdtr);
.align 16
ASM_PFX(AsmWriteLdtr): ASM_PFX(AsmWriteLdtr):
lldt %cx lldt %cx
ret ret

View File

@ -1,6 +1,6 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Copyright (c) 2006, Intel Corporation # Copyright (c) 2006 - 2009, 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
@ -32,7 +32,6 @@
# TODO: # TODO:
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMsr64) .global ASM_PFX(AsmWriteMsr64)
.align 16
ASM_PFX(AsmWriteMsr64): ASM_PFX(AsmWriteMsr64):
mov %rdx, %rax mov %rdx, %rax
shr $0x20, %rdx shr $0x20, %rdx