]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Return virtual address offset from enable_paging()
authorMichael Brown <mcb30@ipxe.org>
Thu, 8 May 2025 13:22:13 +0000 (14:22 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 8 May 2025 13:37:30 +0000 (14:37 +0100)
commit5b19ddbb3c1cbd6fa4f7c444caa466f2d5c458be
treed6ebe1974d07752aeceab1deed94026bed06b86a
parent5e518c744e8dd98b04a486775662dc66a1ef48b0
[riscv] Return virtual address offset from enable_paging()

Once paging has been enabled, there is no direct way to determine the
virtual address offset without external knowledge.  (The paging mode,
if needed, can be read directly from the SATP CSR.)

Change the return value from enable_paging() to provide the virtual
address offset.

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