]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Add support for enabling 32-bit paging
authorMichael Brown <mcb30@ipxe.org>
Sun, 4 May 2025 20:29:06 +0000 (21:29 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 4 May 2025 20:40:32 +0000 (21:40 +0100)
commit4c11737d5dbd5abf1afae879196271debc988730
treea5bd3fcaf529af217ff0f9c81c16263d49317020
parenta32f3c2bc4299097408b6e97bc711b4b86a8217b
[riscv] Add support for enabling 32-bit paging

Add code to construct a 32-bit page table to map the whole of the
32-bit address space with a fixed offset selected to map iPXE itself
at its link-time address, and to return with paging enabled and the
program counter updated to a virtual address.

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