diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-07-10 19:53:41 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-07-31 13:53:42 +0000 |
commit | 041b7317f75ecc5e1629e2dd6786c8bdbe1b19eb (patch) | |
tree | 030e70a7a34c9921dbe97f062e6cb69e4faf8f05 /sys/mips/include | |
parent | e18380e341410ce70d97560a22827591f4b2d373 (diff) | |
download | src-041b7317f75ecc5e1629e2dd6786c8bdbe1b19eb.tar.gz src-041b7317f75ecc5e1629e2dd6786c8bdbe1b19eb.zip |
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
Diffstat (limited to 'sys/mips/include')
-rw-r--r-- | sys/mips/include/pmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/mips/include/pmap.h b/sys/mips/include/pmap.h index 6678f8264ad7..fb186011bd85 100644 --- a/sys/mips/include/pmap.h +++ b/sys/mips/include/pmap.h @@ -166,6 +166,8 @@ extern vm_offset_t virtual_end; #define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list)) #define pmap_page_is_write_mapped(m) (((m)->a.flags & PGA_WRITEABLE) != 0) +#define pmap_vm_page_alloc_check(m) + void pmap_bootstrap(void); void *pmap_mapdev(vm_paddr_t, vm_size_t); void *pmap_mapdev_attr(vm_paddr_t, vm_size_t, vm_memattr_t); |