]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Use 1GB pages for I/O device mappings
authorMichael Brown <mcb30@ipxe.org>
Fri, 11 Jul 2025 10:30:57 +0000 (11:30 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 11 Jul 2025 11:05:52 +0000 (12:05 +0100)
commit0611ddbd1235be79e224e97ac30231801e58deda
tree7415870be3d5082ca3760a8eba3466154030eed9
parentc2cdc1d31e0bbe368dd28818b21b9169a2c5e2be
[riscv] Use 1GB pages for I/O device mappings

All 64-bit paging schemes support at least 1GB "gigapages".  Use these
to map I/O devices instead of 2MB "megapages".  This reduces the
number of consumed page table entries, increases the visual similarity
of I/O remapped addresses to the underlying physical addresses, and
opens up the possibility of reusing the code to create the coherent
DMA map of the 32-bit address space.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/core/svpage.c