HIBERNATE_SELTABLE is not used anymore. Remove, and reclaim its stolen
authormlarkin <mlarkin@openbsd.org>
Sun, 5 Jan 2014 23:06:54 +0000 (23:06 +0000)
committermlarkin <mlarkin@openbsd.org>
Sun, 5 Jan 2014 23:06:54 +0000 (23:06 +0000)
page.

sys/arch/amd64/amd64/hibernate_machdep.c
sys/arch/amd64/include/hibernate_var.h

index f81320e..4d42977 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: hibernate_machdep.c,v 1.17 2013/10/20 20:03:03 mlarkin Exp $  */
+/*     $OpenBSD: hibernate_machdep.c,v 1.18 2014/01/05 23:06:54 mlarkin Exp $  */
 
 /*
  * Copyright (c) 2012 Mike Larkin <mlarkin@openbsd.org>
@@ -243,7 +243,6 @@ hibernate_populate_resume_pt(union hibernate_info *hib_info,
        pmap_kenter_pa(HIBERNATE_PT_LOW, HIBERNATE_PT_LOW, VM_PROT_ALL);
        pmap_kenter_pa(HIBERNATE_PT_LOW2, HIBERNATE_PT_LOW2, VM_PROT_ALL);
        pmap_kenter_pa(HIBERNATE_PT_HI, HIBERNATE_PT_HI, VM_PROT_ALL);
-       pmap_kenter_pa(HIBERNATE_SELTABLE, HIBERNATE_SELTABLE, VM_PROT_ALL);
 
        /* Identity map 3 pages for stack */
        pmap_kenter_pa(HIBERNATE_STACK_PAGE, HIBERNATE_STACK_PAGE, VM_PROT_ALL);
@@ -262,7 +261,6 @@ hibernate_populate_resume_pt(union hibernate_info *hib_info,
        bzero((caddr_t)HIBERNATE_PT_LOW, PAGE_SIZE);
        bzero((caddr_t)HIBERNATE_PT_LOW2, PAGE_SIZE);
        bzero((caddr_t)HIBERNATE_PT_HI, PAGE_SIZE);
-       bzero((caddr_t)HIBERNATE_SELTABLE, PAGE_SIZE);
        bzero((caddr_t)(HIBERNATE_STACK_PAGE - 3*PAGE_SIZE) , 3*PAGE_SIZE);
 
        /* First 512GB PML4E */
index db8d774..c822f19 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: hibernate_var.h,v 1.7 2014/01/05 20:23:57 mlarkin Exp $       */
+/*     $OpenBSD: hibernate_var.h,v 1.8 2014/01/05 23:06:54 mlarkin Exp $       */
 
 /*
  * Copyright (c) 2011 Mike Larkin <mlarkin@openbsd.org>
 #define HIBERNATE_PT_LOW2      (PAGE_SIZE * 25)
 #define HIBERNATE_PT_HI                (PAGE_SIZE * 26)
 
-#define HIBERNATE_SELTABLE     (PAGE_SIZE * 27)
-
 /* 3 pages for stack */
-#define HIBERNATE_STACK_PAGE   (PAGE_SIZE * 30)
+#define HIBERNATE_STACK_PAGE   (PAGE_SIZE * 29)
 
-#define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 31)
+#define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 30)
 /* HIBERNATE_HIBALLOC_PAGE must be the last stolen page (see machdep.c) */
-#define HIBERNATE_HIBALLOC_PAGE (PAGE_SIZE * 32)
+#define HIBERNATE_HIBALLOC_PAGE (PAGE_SIZE * 31)
 
 /* Use 4MB hibernation chunks */
 #define HIBERNATE_CHUNK_SIZE           0x400000