]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use inline tests for individual PTE bits in the RISC-V pmap.
authormarkj <markj@FreeBSD.org>
Tue, 11 Dec 2018 02:15:56 +0000 (02:15 +0000)
committermarkj <markj@FreeBSD.org>
Tue, 11 Dec 2018 02:15:56 +0000 (02:15 +0000)
commit32498fda119f597153627d5ae400f749dc8950d8
tree198270a5f5460c63ae8f0cc9c01dfa8c469860e7
parent6122d43af0eaa1a7d352ffed74ebbf4cbf12a8e0
Use inline tests for individual PTE bits in the RISC-V pmap.

Inline tests for PTE_* bits are easy to read and don't really require a
predicate function, and predicates which operate on a pt_entry_t are
inconvenient when working with L1 and L2 page table entries.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18461
sys/riscv/riscv/pmap.c