diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2014-12-08 07:12:38 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2014-12-08 07:12:38 +0000 |
commit | 96e518569e7f3ca4731e4b9ecba26dfa13635b8d (patch) | |
tree | b1c3c9b290f562c2af5c0a387841cd86e46b3b24 /sys/dev/acpi | |
parent | beccf532063cfbd43373734788e7a3fab89165fd (diff) |
Split the ACPI resume trampoline into code and data, move the data page to
.rodata (kernel copies to the RW page), protect the code page with RX
permissions, protect the code page with RW permissions.
ok deraadt@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpivar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h index 2960bacb65d..f7aaba803c9 100644 --- a/sys/dev/acpi/acpivar.h +++ b/sys/dev/acpi/acpivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acpivar.h,v 1.78 2014/11/22 18:31:46 mlarkin Exp $ */ +/* $OpenBSD: acpivar.h,v 1.79 2014/12/08 07:12:37 mlarkin Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -19,6 +19,7 @@ #define _DEV_ACPI_ACPIVAR_H_ #define ACPI_TRAMPOLINE (19 * NBPG) +#define ACPI_TRAMP_DATA (20 * NBPG) #ifndef _ACPI_WAKECODE |