Last change
on this file was 99404, checked in by vboxsync, 2 years ago |
Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-asm
|
File size:
1.2 KB
|
Line | |
---|
1 | ;------------------------------------------------------------------------------
|
---|
2 | ;
|
---|
3 | ; Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
---|
4 | ; SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
5 | ;
|
---|
6 | ; Module Name:
|
---|
7 | ;
|
---|
8 | ; ScanMem16.Asm
|
---|
9 | ;
|
---|
10 | ; Abstract:
|
---|
11 | ;
|
---|
12 | ; ScanMem16 function
|
---|
13 | ;
|
---|
14 | ; Notes:
|
---|
15 | ;
|
---|
16 | ; The following BaseMemoryLib instances contain the same copy of this file:
|
---|
17 | ;
|
---|
18 | ; BaseMemoryLibRepStr
|
---|
19 | ; BaseMemoryLibMmx
|
---|
20 | ; BaseMemoryLibSse2
|
---|
21 | ; BaseMemoryLibOptDxe
|
---|
22 | ; BaseMemoryLibOptPei
|
---|
23 | ;
|
---|
24 | ;------------------------------------------------------------------------------
|
---|
25 |
|
---|
26 | SECTION .text
|
---|
27 |
|
---|
28 | ;------------------------------------------------------------------------------
|
---|
29 | ; CONST VOID *
|
---|
30 | ; EFIAPI
|
---|
31 | ; InternalMemScanMem16 (
|
---|
32 | ; IN CONST VOID *Buffer,
|
---|
33 | ; IN UINTN Length,
|
---|
34 | ; IN UINT16 Value
|
---|
35 | ; );
|
---|
36 | ;------------------------------------------------------------------------------
|
---|
37 | global ASM_PFX(InternalMemScanMem16)
|
---|
38 | ASM_PFX(InternalMemScanMem16):
|
---|
39 | push edi
|
---|
40 | mov ecx, [esp + 12]
|
---|
41 | mov edi, [esp + 8]
|
---|
42 | mov eax, [esp + 16]
|
---|
43 | repne scasw
|
---|
44 | lea eax, [edi - 2]
|
---|
45 | jz .0
|
---|
46 | mov eax, ecx
|
---|
47 | .0:
|
---|
48 | pop edi
|
---|
49 | ret
|
---|
50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.