]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Return accessible physical address space size from enable_paging()
authorMichael Brown <mcb30@ipxe.org>
Mon, 12 May 2025 10:47:25 +0000 (11:47 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 12 May 2025 10:47:25 +0000 (11:47 +0100)
commit420e475b11b08c1d7ddf3d5a6ef0571626b0bea1
treee430c73190f524e411e2886f82ec77b7665be6dd
parent6fe9ce66ae14537290ac9a2eb081a9fed3a16d1f
[riscv] Return accessible physical address space size from enable_paging()

Relocation requires knowledge of the size of the accessible physical
address space, which for 64-bit CPUs will vary according to the paging
level supported by the processor.

Update enable_paging_64() and enable_paging_32() to calculate and
return the size of the accessible physical address space.

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