mirror of
https://github.com/ipxe/ipxe
synced 2026-01-26 09:23:49 +03:00
[riscv] Do not set executable bit in early UART page mapping
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -879,7 +879,7 @@ enable_paging_64_loop:
|
|||||||
#ifdef EARLY_UART_REG_BASE
|
#ifdef EARLY_UART_REG_BASE
|
||||||
li t0, ( EARLY_UART_REG_BASE & ~( ( 1 << VPN1_LSB ) - 1 ) )
|
li t0, ( EARLY_UART_REG_BASE & ~( ( 1 << VPN1_LSB ) - 1 ) )
|
||||||
srli t0, t0, PTE_PPN_SHIFT
|
srli t0, t0, PTE_PPN_SHIFT
|
||||||
ori t0, t0, PTE_LEAF
|
ori t0, t0, ( PTE_LEAF & ~PTE_X )
|
||||||
STOREN t0, -PTE_SIZE(a3)
|
STOREN t0, -PTE_SIZE(a3)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user