]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a VA_IS_CLEANMAP() macro.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 18 Feb 2021 00:32:11 +0000 (16:32 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 10 May 2022 17:47:07 +0000 (10:47 -0700)
commit0c1258e7079b678a763dc2c851f6c83c2ad6978f
tree3cc89605162bd63eeb871281d184d562140f39c9
parentd055e974c4eeb7237cd18c3fe84a87fbd09ae43b
Add a VA_IS_CLEANMAP() macro.

This macro returns true if a provided virtual address is contained
in the kernel's clean submap.

In CHERI kernels, the buffer cache and transient I/O map are allocated
as separate regions.  Abstracting this check reduces the diff relative
to FreeBSD.  It is perhaps slightly more readable as well.

Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D28710

(cherry picked from commit 67932460c7b6893a637a47d98d5f29d63e92c727)
sys/amd64/amd64/pmap.c
sys/arm/arm/pmap-v6.c
sys/arm64/arm64/pmap.c
sys/i386/i386/pmap.c
sys/mips/mips/pmap.c
sys/powerpc/aim/mmu_radix.c
sys/riscv/riscv/pmap.c
sys/vm/vm.h