]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: create a convenience composite macro
authorDoug Moore <dougm@FreeBSD.org>
Sun, 21 Apr 2024 22:24:29 +0000 (17:24 -0500)
committerDoug Moore <dougm@FreeBSD.org>
Sun, 21 Apr 2024 23:36:00 +0000 (18:36 -0500)
commitdd03eafacba962c9dcec929c3ed9d63e7c43da3a
tree17df0e17b85833820b98ef6e848ac242c8325922
parent10e0c34bf842885b4bd78adbbdbd7fb00f133cb5
riscv: create a convenience composite macro

Define PTE_TO_VM_PAGE to compose the PHYS_TO_VM_PAGE and PTE_TO_PHYS
macros. Use it where appropriate, and drop some variables that it
makes unnecessary.

Reviewed by: jhb (previous version)
Differential Revision: https://reviews.freebsd.org/D44700
sys/riscv/riscv/pmap.c