]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Construct invariant portions of page table outside the loop
authorMichael Brown <mcb30@ipxe.org>
Fri, 4 Jul 2025 13:37:31 +0000 (14:37 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 4 Jul 2025 15:10:51 +0000 (16:10 +0100)
commit3fd54e4f3a84915470582d93d001e7229783aa06
tree976047e7acd945498821c5366ad09cd2a6d7b7fb
parent6bc55d65b16fefdc53837ecd7bcee44eda03b3ac
[riscv] Construct invariant portions of page table outside the loop

The page table entries for the identity map vary according to the
paging level in use, and so must be constructed within the loop used
to detect the maximum supported paging level.  Other page table
entries are invariant between paging levels, and so may be constructed
just once before entering the loop.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/prefix/libprefix.S