summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/hibernate_var.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/include/hibernate_var.h')
-rw-r--r--sys/arch/amd64/include/hibernate_var.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/arch/amd64/include/hibernate_var.h b/sys/arch/amd64/include/hibernate_var.h
index 0c98de261ff..db8d774b4e5 100644
--- a/sys/arch/amd64/include/hibernate_var.h
+++ b/sys/arch/amd64/include/hibernate_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hibernate_var.h,v 1.6 2013/06/04 16:21:23 mlarkin Exp $ */
+/* $OpenBSD: hibernate_var.h,v 1.7 2014/01/05 20:23:57 mlarkin Exp $ */
/*
* Copyright (c) 2011 Mike Larkin <mlarkin@openbsd.org>
@@ -27,41 +27,41 @@
/*
* PML4 table for resume
*/
-#define HIBERNATE_PML4T (PAGE_SIZE * 5)
+#define HIBERNATE_PML4T (PAGE_SIZE * 18)
/*
* amd64 uses a PDPT to map the first 512GB phys mem plus one more
* to map any ranges of phys mem past 512GB (if needed)
*/
-#define HIBERNATE_PDPT_LOW (PAGE_SIZE * 6)
-#define HIBERNATE_PDPT_HI (PAGE_SIZE * 7)
+#define HIBERNATE_PDPT_LOW (PAGE_SIZE * 19)
+#define HIBERNATE_PDPT_HI (PAGE_SIZE * 20)
/*
* amd64 uses one PD to map the first 1GB phys mem plus one more to map any
* other 1GB ranges within the first 512GB phys, plus one more to map any
* 1GB range in any subsequent 512GB range
*/
-#define HIBERNATE_PD_LOW (PAGE_SIZE * 8)
-#define HIBERNATE_PD_LOW2 (PAGE_SIZE * 9)
-#define HIBERNATE_PD_HI (PAGE_SIZE * 10)
+#define HIBERNATE_PD_LOW (PAGE_SIZE * 21)
+#define HIBERNATE_PD_LOW2 (PAGE_SIZE * 22)
+#define HIBERNATE_PD_HI (PAGE_SIZE * 23)
/*
* amd64 uses one PT to map the first 2MB phys mem plus one more to map any
* other 2MB range within the first 1GB, plus one more to map any 2MB range
* in any subsequent 512GB range.
*/
-#define HIBERNATE_PT_LOW (PAGE_SIZE * 11)
-#define HIBERNATE_PT_LOW2 (PAGE_SIZE * 12)
-#define HIBERNATE_PT_HI (PAGE_SIZE * 13)
+#define HIBERNATE_PT_LOW (PAGE_SIZE * 24)
+#define HIBERNATE_PT_LOW2 (PAGE_SIZE * 25)
+#define HIBERNATE_PT_HI (PAGE_SIZE * 26)
-#define HIBERNATE_SELTABLE (PAGE_SIZE * 14)
+#define HIBERNATE_SELTABLE (PAGE_SIZE * 27)
/* 3 pages for stack */
-#define HIBERNATE_STACK_PAGE (PAGE_SIZE * 17)
+#define HIBERNATE_STACK_PAGE (PAGE_SIZE * 30)
-#define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 18)
+#define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 31)
/* HIBERNATE_HIBALLOC_PAGE must be the last stolen page (see machdep.c) */
-#define HIBERNATE_HIBALLOC_PAGE (PAGE_SIZE * 19)
+#define HIBERNATE_HIBALLOC_PAGE (PAGE_SIZE * 32)
/* Use 4MB hibernation chunks */
#define HIBERNATE_CHUNK_SIZE 0x400000