Get the retguard region's phys address from pmap, instead of using linker
authormlarkin <mlarkin@openbsd.org>
Fri, 2 Sep 2022 09:02:37 +0000 (09:02 +0000)
committermlarkin <mlarkin@openbsd.org>
Fri, 2 Sep 2022 09:02:37 +0000 (09:02 +0000)
commit2547ab58da20f1cad368fd53e440f9114df03ee5
treea51ae23ae18d908fd4e83ea63ddf54f393f09bc0
parent172b98bfeb4f750505efbdec60ed978a176fdaff
Get the retguard region's phys address from pmap, instead of using linker
script symbols. This is needed since we don't have those symbols on all
archs where we want hibernate.

ok kettenis, and input and help from miod.
sys/arch/amd64/amd64/hibernate_machdep.c
sys/arch/amd64/conf/ld.script
sys/kern/subr_hibernate.c