-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AdvLoggerPkg/SecDebugAgent: Update for 64-bit
Allows the module to be built for 64-bit SEC. Signed-off-by: Michael Kubacki <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
;------------------------------------------------------------------------------ | ||
; | ||
; Copyright (c) Microsoft Corporation. All rights reserved. | ||
; SPDX-License-Identifier: BSD-2-Clause-Patent | ||
; | ||
; Module Name: | ||
; | ||
; RepLodsd.nasm | ||
; | ||
; Abstract: | ||
; | ||
; Executes a rep lodsd (repeated load dword string instruction). While there is no valid | ||
; data at the address, this allocates entries in the cache with the correct address tags. | ||
; | ||
; @param Address The pointer to the cache location. | ||
; @param Length The length in bytes of the region to load. | ||
; | ||
; @return Value Returns the next address to be touched (to verify the rep lodsd operation) | ||
; | ||
;------------------------------------------------------------------------------ | ||
|
||
SECTION .text | ||
|
||
;------------------------------------------------------------------------------ | ||
; UINT32 * | ||
; EFIAPI | ||
; AsmRepLodsd ( | ||
; IN UINT32 *Address, // rcx | ||
; IN UINTN Length // rdx | ||
; ); | ||
;------------------------------------------------------------------------------ | ||
global ASM_PFX(AsmRepLodsd) | ||
ASM_PFX(AsmRepLodsd): | ||
push rsi | ||
xchg rcx, rdx | ||
mov rsi, rdx | ||
shr rcx, 2 | ||
cld | ||
rep lodsd | ||
mov rax, rsi | ||
pop rsi | ||
ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters