From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] ARM926EJS: Make asm routines volatile in cache ops
Date: Mon, 09 Apr 2012 13:21:13 +0200 [thread overview]
Message-ID: <4F82C629.8090803@denx.de> (raw)
In-Reply-To: <1333718707-6443-1-git-send-email-marex@denx.de>
On 06/04/2012 15:25, Marek Vasut wrote:
> We certainly don't want the compiler to reorganise the code for dcache flushing.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> ---
> arch/arm/cpu/arm926ejs/cache.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/cpu/arm926ejs/cache.c b/arch/arm/cpu/arm926ejs/cache.c
> index 5b23e3a..0b36294 100644
> --- a/arch/arm/cpu/arm926ejs/cache.c
> +++ b/arch/arm/cpu/arm926ejs/cache.c
> @@ -82,7 +82,7 @@ void flush_dcache_range(unsigned long start, unsigned long stop)
> start += CONFIG_SYS_CACHELINE_SIZE;
> }
>
> - asm("mcr p15, 0, %0, c7, c10, 4\n"::"r"(0));
> + asm volatile("mcr p15, 0, %0, c7, c10, 4\n"::"r"(0));
> }
>
> void flush_cache(unsigned long start, unsigned long size)
Acked-by: Stefano Babic <sbabic@denx.de>
Thanks to point this issue - the same happens on MX3x. I will send a
patch (ptch for cache in ARM1136 is already merged).
Stefano
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
prev parent reply other threads:[~2012-04-09 11:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-06 13:25 [U-Boot] [PATCH 1/2] ARM926EJS: Make asm routines volatile in cache ops Marek Vasut
2012-04-06 13:25 ` [U-Boot] [PATCH 2/2] ARM926EJS: Fix cache.c to comply with checkpatch.pl Marek Vasut
2012-04-06 15:27 ` [U-Boot] [PATCH 1/2] ARM926EJS: Make asm routines volatile in cache ops Mike Frysinger
2012-04-09 11:21 ` Stefano Babic [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F82C629.8090803@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox