physmem: Add physmem_excluded to query if a region is excluded
authorWarner Losh <imp@FreeBSD.org>
Thu, 6 Oct 2022 03:55:26 +0000 (21:55 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 25 Oct 2022 15:32:49 +0000 (09:32 -0600)
commitdeb1e3b719985466b0cc84825846519acdd0a2e7
tree5e40a70a84f2b57e773b5bc6a395bbcbce1366a4
parentecb167daf761b75e71607e3b216e162cad99dad0
physmem: Add physmem_excluded to query if a region is excluded

In order to safely reuse excluded memory when it's reserved for special
purpose, we need to test whether or not the memory has been reserved
early in boot. physmem_excluded will return true when the entire range
is excluded, false otherwise.

Sponsored by: Netflix
sys/kern/subr_physmem.c
sys/sys/physmem.h