CVSROOT: /cvs Module name: src Changes by: mlar...@cvs.openbsd.org 2022/01/16 19:54:28
Modified files: sys/arch/amd64/amd64: hibernate_machdep.c sys/arch/i386/i386: hibernate_machdep.c sys/kern : subr_hibernate.c sys/sys : hibernate.h Log message: Allow more memory ranges in hibernate The previous limit of VM_PHYSSEG_MAX ranges (16) was proving too small for newer machines. This diff reorganizes the hibernate signature block to allow for 22 ranges by removing the kernel version comparison and replacing it with a SHA of several unique kernel features (the version string and several addresses of functions not inside the same .o). Reported by claudio@, who also helped fix some issues in the diff. Input from deraadt@ as well. Tested by myself and claudio on a variety of machines. Only compile tested on i386 as I have no more S4-capable i386 hardware anymore. ok claudio@