summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2014-06-11 00:30:26 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2014-06-11 00:30:26 +0000
commit2d6b7603d4b410d583f7769273bb66677741bc9c (patch)
treeedd3897f61fbf922f850ebbc0648b7149495be27 /sys/arch/i386
parent1da3b76566507f7b2cb274e4c3d095dc9529542f (diff)
Don't map phys pages < 64KB in the resume page table. We stopped doing this
in the kernel a few months back and there's no reason these pages need to be mapped during unpack either.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/hibernate_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/hibernate_machdep.c b/sys/arch/i386/i386/hibernate_machdep.c
index b65b42c8321..932f7b89417 100644
--- a/sys/arch/i386/i386/hibernate_machdep.c
+++ b/sys/arch/i386/i386/hibernate_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hibernate_machdep.c,v 1.30 2014/05/31 06:30:16 mlarkin Exp $ */
+/* $OpenBSD: hibernate_machdep.c,v 1.31 2014/06/11 00:30:25 mlarkin Exp $ */
/*
* Copyright (c) 2011 Mike Larkin <mlarkin@openbsd.org>
@@ -217,10 +217,10 @@ hibernate_populate_resume_pt(union hibernate_info *hib_info,
hibernate_enter_resume_4k_pde(0);
/*
- * Identity map first 640KB physical for tramps and special utility
+ * Identity map 64KB-640KB physical for tramps and special utility
* pages using 4KB mappings
*/
- for (i = 0; i < 160; i ++) {
+ for (i = 16; i < 160; i ++) {
hibernate_enter_resume_mapping(i*PAGE_SIZE, i*PAGE_SIZE, 0);
}