#------------------------------------------------------------------------------
#
-# 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
#
# Module Name:
#
-# CpuIdEx.Asm
+# CpuIdEx.S
#
# Abstract:
#
#------------------------------------------------------------------------------
#
-# 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
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 \r
+ or %rax, %rcx\r
+ mov %r9d, %edi \r
+ mov 0x28(%rsp), %eax\r
+ push %rcx\r
+ ret\r
L1:
mov %eax,%esp
mov %cr0,%rax
mov %rax,%cr4
push %rdi
push %rsi
- callq *%rbx
+ callq *%rdx
jmp .
#------------------------------------------------------------------------------
#
-# 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
#------------------------------------------------------------------------------
.global ASM_PFX(AsmFlushCacheLine)
ASM_PFX(AsmFlushCacheLine):
- clflush (%rdi)
- mov %rdi, %rax
+ clflush (%rcx)
+ mov %rcx, %rax
ret
#------------------------------------------------------------------------------\r
#\r
-# Copyright (c) 2006, Intel Corporation\r
+# Copyright (c) 2006 - 2008, Intel Corporation\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
#\r
# Module Name:\r
#\r
-# InterlockedCompareExchange32.Asm\r
+# InterlockedCompareExchange32.S\r
#\r
# Abstract:\r
#\r
#------------------------------------------------------------------------------
#
-# 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
.global ASM_PFX(InternalSyncCompareExchange64)
.align 16
ASM_PFX(InternalSyncCompareExchange64):
- mov %rsi, %rax
- lock cmpxchg %rdx,(%rdi)
+ mov %rdx, %rax
+ lock cmpxchg %r8,(%rcx)
ret
#\r
# Module Name:\r
#\r
-# LongJump.Asm\r
+# LongJump.S\r
#\r
# Abstract:\r
#\r
#------------------------------------------------------------------------------
#
-# 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
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm0)
ASM_PFX(AsmWriteMm0):
- movd %rcx, %xmm0
+ movd %rcx, %mm0
ret