]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[riscv] Do not set executable bit in early UART page mapping
authorMichael Brown <mcb30@ipxe.org>
Mon, 2 Jun 2025 07:59:54 +0000 (08:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 2 Jun 2025 07:59:54 +0000 (08:59 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/prefix/libprefix.S

index 3fe01d7c853183f6abd1660aca4c5a349d7345fd..b51d1d74141ffb8f348e6f821e37a8ca873ae7a0 100644 (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