Commit ebae18a52c57ffdc087902233d24b650bc886d82
1 parent
647edf3ae8
Exists in
smarc_8mq_lf_v2020.04
and in
4 other branches
LF-3161-2 mx6ul: bee: Remove XN bit for bee enabled region
We will test a program on BEE enabled region, so remove XN bit to allow execution when current MMU domain is changed to client. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit e4bd1734bcba2012d4d7dea7598635256f155c96)
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
arch/arm/mach-imx/mx6/bee.c
... | ... | @@ -275,9 +275,9 @@ |
275 | 275 | struct bee_parameters *p = ¶ |
276 | 276 | |
277 | 277 | #if defined(CONFIG_SYS_ARM_CACHE_WRITETHROUGH) |
278 | - enum dcache_option option = DCACHE_WRITETHROUGH; | |
278 | + enum dcache_option option = DCACHE_WRITETHROUGH & ~TTB_SECT_XN_MASK; | |
279 | 279 | #else |
280 | - enum dcache_option option = DCACHE_WRITEBACK; | |
280 | + enum dcache_option option = DCACHE_WRITEBACK & ~TTB_SECT_XN_MASK; | |
281 | 281 | #endif |
282 | 282 | |
283 | 283 | if (argc > 5) |