From 96e518569e7f3ca4731e4b9ecba26dfa13635b8d Mon Sep 17 00:00:00 2001 From: Mike Larkin Date: Mon, 8 Dec 2014 07:12:38 +0000 Subject: 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@ --- sys/arch/i386/include/hibernate_var.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/arch/i386/include') diff --git a/sys/arch/i386/include/hibernate_var.h b/sys/arch/i386/include/hibernate_var.h index 6dc69e280c4..0fe75131ae4 100644 --- a/sys/arch/i386/include/hibernate_var.h +++ b/sys/arch/i386/include/hibernate_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hibernate_var.h,v 1.11 2014/11/22 20:09:36 mlarkin Exp $ */ +/* $OpenBSD: hibernate_var.h,v 1.12 2014/12/08 07:12:37 mlarkin Exp $ */ /* * Copyright (c) 2011 Mike Larkin @@ -18,13 +18,13 @@ #define PIGLET_PAGE_MASK (PD_MASK) -#define HIBERNATE_PD_PAGE (PAGE_SIZE * 20) -#define HIBERNATE_PT_PAGE (PAGE_SIZE * 21) +#define HIBERNATE_PD_PAGE (PAGE_SIZE * 21) +#define HIBERNATE_PT_PAGE (PAGE_SIZE * 22) /* 2 pages for stack */ -#define HIBERNATE_STACK_PAGE (PAGE_SIZE * 23) -#define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 24) +#define HIBERNATE_STACK_PAGE (PAGE_SIZE * 24) +#define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 25) /* HIBERNATE_HIBALLOC_PAGE must be the last stolen page (see machdep.c) */ -#define HIBERNATE_HIBALLOC_PAGE (PAGE_SIZE * 25) +#define HIBERNATE_HIBALLOC_PAGE (PAGE_SIZE * 26) /* Use 4MB hibernation chunks */ #define HIBERNATE_CHUNK_SIZE 0x400000 -- cgit v1.2.3