HomeFreeBSD

Add pmap_vm_page_alloc_check()

Description

Add pmap_vm_page_alloc_check()

which is the place to put MD asserts about allocated pages.

On amd64, verify that allocated page does not belong to the kernel
(text, data) or early allocated pages.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D31121

Details

Provenance
kibAuthored on Jul 10 2021, 7:53 PM
Reviewer
markj
Differential Revision
D31121: amd64 UEFI boot: stop copying staging area to 2M phys
Parents
rGe18380e34141: amd64: do not assume that kernel is loaded at 2M physical
Branches
Unknown
Tags
Unknown