From: Alexander Graf Date: Fri, 28 Oct 2016 09:26:08 +0200 Subject: [U-Boot] [PATCH 2/2] arm: cpu: armv7: omap-common: Clear XN bit in the ARMV7_DCACHE_POLICY In-Reply-To: <1477636304-16839-2-git-send-email-j-keerthy@ti.com> References: <1477636304-16839-1-git-send-email-j-keerthy@ti.com> <1477636304-16839-2-git-send-email-j-keerthy@ti.com> Message-ID: <5e4e4f7d-b60b-859e-8be2-563750c43026@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 28/10/2016 08:31, Keerthy wrote: > Clear the XN bit in the ARMV7_DCACHE_POLICY so as to mark > the regions as execute okay. > > Signed-off-by: Keerthy How did you ever get the bit set in DCACHE_WRITEALLOC or WRITEBACK in the first place? Both are RAM mapping flags which shouldn't have the XN mask set. Alex > --- > arch/arm/cpu/armv7/omap-common/omap-cache.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/cpu/armv7/omap-common/omap-cache.c b/arch/arm/cpu/armv7/omap-common/omap-cache.c > index b37163a..a71aa0d 100644 > --- a/arch/arm/cpu/armv7/omap-common/omap-cache.c > +++ b/arch/arm/cpu/armv7/omap-common/omap-cache.c > @@ -34,7 +34,7 @@ DECLARE_GLOBAL_DATA_PTR; > */ > > #ifdef CONFIG_ARMV7_LPAE > -#define ARMV7_DCACHE_POLICY DCACHE_WRITEALLOC > +#define ARMV7_DCACHE_POLICY DCACHE_WRITEALLOC & ~TTB_SECT_XN_MASK > #else > #define ARMV7_DCACHE_POLICY DCACHE_WRITEBACK & ~TTB_SECT_XN_MASK > #endif >