diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-02-05 13:53:34 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-02 15:53:37 -0500 |
commit | 342e1abd5c009cb2e119965415eabb7aa5e4dcd9 (patch) | |
tree | 627560791fac2bd88d0c94a4958af625e0461f9b /arch | |
parent | aad84147945f27fffeccb84053399ff11447c9d6 (diff) | |
download | u-boot-342e1abd5c009cb2e119965415eabb7aa5e4dcd9.tar.gz u-boot-342e1abd5c009cb2e119965415eabb7aa5e4dcd9.tar.bz2 u-boot-342e1abd5c009cb2e119965415eabb7aa5e4dcd9.zip |
arm: remove TTB_SECT_XN_MASK in DCACHE_WRITETHROUGH
The normal memory (other that DCACHE_OFF) should be executable by default,
only the device memory (DCACHE_OFF) used for peripheral access should have
the bit execute never (TTB_SECT_XN_MASK).
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index 5fe83699f4..9db64dd69d 100644 --- a/arch/arm/include/asm/system.h +++ b/arch/arm/include/asm/system.h @@ -489,7 +489,7 @@ enum dcache_option { */ enum dcache_option { DCACHE_OFF = TTB_SECT_DOMAIN(0) | TTB_SECT_XN_MASK | TTB_SECT, - DCACHE_WRITETHROUGH = DCACHE_OFF | TTB_SECT_C_MASK, + DCACHE_WRITETHROUGH = TTB_SECT_DOMAIN(0) | TTB_SECT | TTB_SECT_C_MASK, DCACHE_WRITEBACK = DCACHE_WRITETHROUGH | TTB_SECT_B_MASK, DCACHE_WRITEALLOC = DCACHE_WRITEBACK | TTB_SECT_TEX(1), }; |