diff options
author | Alan Cox <alc@FreeBSD.org> | 2025-07-08 23:31:26 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2025-07-13 16:55:47 +0000 |
commit | 2cfd6342ac84c6915106fbe141795ca23a96cbba (patch) | |
tree | 9cee3213568a7a51a160f1cfd5ce75bfa1098791 /sys/dev/nand/(public-mirror) | |
parent | 10d336114d488193d06bffa1755bf61f2a027a8f (diff) |
When pmap_enter_l2() needs to destroy an existing kernel superpage
mapping, do not remove the saved page table page (PTP) from the pm_root
trie and remap it into the page table. Instead, simply zero it. Then,
later the PTP does not need to be unmapped and reinserted into the trie.
If the kernel region is not mapped by a superpage, then try to insert
the PTP into the pm_root trie before clearing the PTEs. If the PTP
insertion fails, then we can return failure with the old mappings still
in place.
Convert an assertion from a panic to a KASSERT.
Reviewed by: kib, markj (an earlier version)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D51220
Diffstat (limited to 'sys/dev/nand/(public-mirror)')
0 files changed, 0 insertions, 0 deletions