[riscv] Do not set executable bit in early UART page mapping

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-06-02 08:59:54 +01:00
parent 7df005c4c6
commit 817145fe01

View File

@@ -879,7 +879,7 @@ enable_paging_64_loop:
#ifdef EARLY_UART_REG_BASE
li t0, ( EARLY_UART_REG_BASE & ~( ( 1 << VPN1_LSB ) - 1 ) )
srli t0, t0, PTE_PPN_SHIFT
ori t0, t0, PTE_LEAF
ori t0, t0, ( PTE_LEAF & ~PTE_X )
STOREN t0, -PTE_SIZE(a3)
#endif