aboutsummaryrefslogtreecommitdiff
path: root/EfiGuardDxe/EfiGuardDxe.h
diff options
context:
space:
mode:
authorMatthijs Lavrijsen <mattiwatti@gmail.com>2023-03-26 15:22:09 +0200
committerMatthijs Lavrijsen <mattiwatti@gmail.com>2023-03-26 15:22:09 +0200
commit82b91beedf492b3725d987bfa2e5001f33686007 (patch)
treedaf4f0e68ba745ad95e72ea3d08f43fe0a88fe6e /EfiGuardDxe/EfiGuardDxe.h
parent4465715c2c3abbd554f2ee09360532bcf257d34a (diff)
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.
Diffstat (limited to 'EfiGuardDxe/EfiGuardDxe.h')
-rw-r--r--EfiGuardDxe/EfiGuardDxe.h1
1 files changed, 1 insertions, 0 deletions
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, <addr>, push [e|r]ax, ret)
//
extern CONST UINT8 gHookTemplate[(sizeof(VOID*) / 4) + sizeof(VOID*) + 2];
+extern CONST UINTN gHookTemplateAddressOffset;
//