mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
armv8: fsl-layerscape: Fix final MMU table for QSPI and IFC
For QSPI and IFC addresses execution shouldn't be allowed when u-boot running from DDR. Revise the MMU final table to enforce execute-never bits. Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
5436c6a347
commit
22c51855bf
1 changed files with 4 additions and 2 deletions
|
@ -199,7 +199,8 @@ static struct mm_region final_map[] = {
|
||||||
},
|
},
|
||||||
{ CONFIG_SYS_FSL_QSPI_BASE1, CONFIG_SYS_FSL_QSPI_BASE1,
|
{ CONFIG_SYS_FSL_QSPI_BASE1, CONFIG_SYS_FSL_QSPI_BASE1,
|
||||||
CONFIG_SYS_FSL_QSPI_SIZE1,
|
CONFIG_SYS_FSL_QSPI_SIZE1,
|
||||||
PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_NON_SHARE
|
PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
|
||||||
|
PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN
|
||||||
},
|
},
|
||||||
{ CONFIG_SYS_FSL_QSPI_BASE2, CONFIG_SYS_FSL_QSPI_BASE2,
|
{ CONFIG_SYS_FSL_QSPI_BASE2, CONFIG_SYS_FSL_QSPI_BASE2,
|
||||||
CONFIG_SYS_FSL_QSPI_SIZE2,
|
CONFIG_SYS_FSL_QSPI_SIZE2,
|
||||||
|
@ -208,7 +209,8 @@ static struct mm_region final_map[] = {
|
||||||
},
|
},
|
||||||
{ CONFIG_SYS_FSL_IFC_BASE2, CONFIG_SYS_FSL_IFC_BASE2,
|
{ CONFIG_SYS_FSL_IFC_BASE2, CONFIG_SYS_FSL_IFC_BASE2,
|
||||||
CONFIG_SYS_FSL_IFC_SIZE2,
|
CONFIG_SYS_FSL_IFC_SIZE2,
|
||||||
PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE
|
PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
|
||||||
|
PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN
|
||||||
},
|
},
|
||||||
{ CONFIG_SYS_FSL_DCSR_BASE, CONFIG_SYS_FSL_DCSR_BASE,
|
{ CONFIG_SYS_FSL_DCSR_BASE, CONFIG_SYS_FSL_DCSR_BASE,
|
||||||
CONFIG_SYS_FSL_DCSR_SIZE,
|
CONFIG_SYS_FSL_DCSR_SIZE,
|
||||||
|
|
Loading…
Reference in a new issue