From 82b91beedf492b3725d987bfa2e5001f33686007 Mon Sep 17 00:00:00 2001 From: Matthijs Lavrijsen Date: Sun, 26 Mar 2023 15:22:09 +0200 Subject: EfiGuardDxe: clear and restore CR0.WP when copying This is intended to deal with the UEFI memory protection protocol (EFI_MEMORY_ATTRIBUTE_PROTOCOL) introduced in the UEFI 2.10 specification. --- EfiGuardDxe/EfiGuardDxe.h | 1 + 1 file changed, 1 insertion(+) (limited to 'EfiGuardDxe/EfiGuardDxe.h') diff --git a/EfiGuardDxe/EfiGuardDxe.h b/EfiGuardDxe/EfiGuardDxe.h index 0970d3b..249ed8c 100644 --- a/EfiGuardDxe/EfiGuardDxe.h +++ b/EfiGuardDxe/EfiGuardDxe.h @@ -49,6 +49,7 @@ extern BOOLEAN gEfiGoneVirtual; // Universal template bytes for a faux call inline hook (mov [e|r]ax, , push [e|r]ax, ret) // extern CONST UINT8 gHookTemplate[(sizeof(VOID*) / 4) + sizeof(VOID*) + 2]; +extern CONST UINTN gHookTemplateAddressOffset; // -- cgit v1.2.3