#\r
#------------------------------------------------------------------------------\r
#\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, 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
# IN UINTN Count\r
# );\r
#------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
ASM_PFX(InternalMemZeroMem):\r
- push rdi\r
- push rcx\r
- xor rax, rax\r
- mov rdi, rcx\r
- mov rcx, rdx\r
- shr rcx, 3\r
- and rdx, 7\r
+ pushq %rdi\r
+ pushq %rcx\r
+ xorq %rax, %rax\r
+ movq %rcx, %rdi\r
+ movq %rdx, %rcx\r
+ shrq $3, %rcx\r
+ andq $7, %rdx\r
cld\r
rep stosq\r
- mov rcx, rdx\r
+ movq %rdx, %rcx\r
rep stosb\r
- pop rax\r
- pop rdi\r
+ popq %rax\r
+ popq %rdi\r
ret\r
\r