public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] nios2: add flush_dcache_range function
Date: Thu, 10 Nov 2011 17:10:16 +0800	[thread overview]
Message-ID: <4EBB94F8.5070308@wytron.com.tw> (raw)
In-Reply-To: <1320410288-15008-4-git-send-email-stefan.kristiansson@saunalahti.fi>

On 11/04/2011 08:38 PM, Stefan Kristiansson wrote:
> exposes functionality to flush dcache according to
> the common.h API
>
> Signed-off-by: Stefan Kristiansson<stefan.kristiansson@saunalahti.fi>
> Cc: Thomas Chou<thomas@wytron.com.tw>
> ---
>   arch/nios2/lib/cache.S |   10 ++++++++++
>   1 files changed, 10 insertions(+), 0 deletions(-)
>

Hi Stefan,

Applied to nios next branch. Thanks.

Best regards,
Thomas


> diff --git a/arch/nios2/lib/cache.S b/arch/nios2/lib/cache.S
> index ee3b4b7..b952d0c 100644
> --- a/arch/nios2/lib/cache.S
> +++ b/arch/nios2/lib/cache.S
> @@ -48,6 +48,16 @@ flush_icache:
>   	bltu	r4, r5, 1b
>   	ret
>
> +	.global flush_dcache_range
> +
> +flush_dcache_range:
> +	movhi	r8, %hi(CONFIG_SYS_DCACHELINE_SIZE)
> +	ori	r8, r8, %lo(CONFIG_SYS_DCACHELINE_SIZE)
> +0:	flushd	0(r4)
> +	add	r4, r4, r8
> +	bltu	r4, r5, 0b
> +	ret
> +
>   	.global flush_cache
>
>   flush_cache:

      reply	other threads:[~2011-11-10  9:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04 12:38 [U-Boot] [PATCH 0/3] Fix conflicting definitions of flush_dcache Stefan Kristiansson
2011-11-04 12:38 ` [U-Boot] [PATCH 1/3] net/ethoc: use flush_dcache_range instead " Stefan Kristiansson
2011-11-10  9:12   ` Thomas Chou
2012-03-30 21:58   ` Wolfgang Denk
2011-11-04 12:38 ` [U-Boot] [PATCH 2/3] net/altera_tse: " Stefan Kristiansson
2011-11-10  9:14   ` Thomas Chou
2012-03-30 21:58   ` Wolfgang Denk
2011-11-04 12:38 ` [U-Boot] [PATCH 3/3] nios2: add flush_dcache_range function Stefan Kristiansson
2011-11-10  9:10   ` Thomas Chou [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=4EBB94F8.5070308@wytron.com.tw \
    --to=thomas@wytron.com.tw \
    --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