linux-mips
[Top] [All Lists]

Re: Cache routine patch

To: Jun Sun <jsun@mvista.com>
Subject: Re: Cache routine patch
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 12 Dec 2002 15:13:08 +0100
Cc: Carsten Langgaard <carstenl@mips.com>, linux-mips@linux-mips.org
In-reply-to: <20021211090635.C6755@mvista.com>; from jsun@mvista.com on Wed, Dec 11, 2002 at 09:06:35AM -0800
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <3DF719D0.658530E2@mips.com> <20021211090635.C6755@mvista.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
On Wed, Dec 11, 2002 at 09:06:35AM -0800, Jun Sun wrote:

> Part of you patches fixes an off-by-one problem in flushing
> cache for a range of addresses.  I have a different version
> for that part which is a little more visually pleasing.
> 
> See attachment.

In case you were wondering why the whole loop construction is looking so
odd, take a look at the compiler output.  The loop construction I've
choosen is the only one that's producing bearable code.  Sad to see that
gcc is producing crap code from such a trivial loop ...

   Ralf

<Prev in Thread] Current Thread [Next in Thread>