diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2011-11-13 18:38:11 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2011-11-13 18:38:11 +0000 |
commit | fc5e7c71f13392cfc1167445c150e9e2c55d3a1b (patch) | |
tree | 30cd77047f528a8d8500400523e55a800bda8724 /sys/arch/i386/include | |
parent | 5283aacecf7ce3c8ed5b87bfc800614878e91940 (diff) |
Fix a handful of bugs that were causing reboots and other bad behavior
during hibernate resumes.
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/hibernate_var.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arch/i386/include/hibernate_var.h b/sys/arch/i386/include/hibernate_var.h index b34fd9395cb..86299d8b0a9 100644 --- a/sys/arch/i386/include/hibernate_var.h +++ b/sys/arch/i386/include/hibernate_var.h @@ -20,10 +20,13 @@ #define PAGE_MASK_4M (NBPD - 1) #define PMAP_PA_MASK_4M ~((paddr_t)PAGE_MASK_4M) +#define PIGLET_PAGE_MASK ~((paddr_t)PAGE_MASK_4M) + #define HIBERNATE_PD_PAGE (PAGE_SIZE * 5) #define HIBERNATE_PT_PAGE (PAGE_SIZE * 6) #define HIBERNATE_STACK_PAGE (PAGE_SIZE * 7) #define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 8) +#define HIBERNATE_COPY_PAGE (PAGE_SIZE * 9) /* Use 4MB hibernation chunks */ #define HIBERNATE_CHUNK_SIZE 0x400000 |