+++ /dev/null
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
-; 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
-; http://opensource.org/licenses/bsd-license.php\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-; EfiSetMemRep4.asm\r
-;\r
-; Abstract:\r
-;\r
-; SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
- .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EfiCommonLibSetMem (\r
-; OUT VOID *Buffer,\r
-; IN UINTN Size,\r
-; IN UINT8 Value\r
-; );\r
-;------------------------------------------------------------------------------\r
-EfiCommonLibSetMem PROC USES rdi\r
- cmp rdx, 0 ; if Size == 0, do nothing\r
- je @SetDone\r
- mov rdi, rcx\r
- mov al, r8b\r
- mov ah, al\r
- shrd ecx, eax, 16\r
- shld eax, ecx, 16\r
- mov rcx, rdx\r
- shr rcx, 2\r
- rep stosd\r
- mov rcx, rdx\r
- and rcx, 3\r
- rep stosb\r
-@SetDone:\r
- ret\r
-EfiCommonLibSetMem ENDP\r
-\r
- END\r
-\r