From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schwierzeck Date: Tue, 31 May 2016 10:03:34 +0200 Subject: [U-Boot] [PATCH v2 3/3] MIPS: Abstract cache op loops with a macro In-Reply-To: <20160527132806.24134-4-paul.burton@imgtec.com> References: <20160527132806.24134-1-paul.burton@imgtec.com> <20160527132806.24134-4-paul.burton@imgtec.com> Message-ID: <574D4556.9020102@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 27.05.2016 um 15:28 schrieb Paul Burton: > The various cache maintenance routines perform a number of loops over > cache lines. Rather than duplicate the code for performing such loops, > abstract it out into a new cache_loop macro which performs an arbitrary > number of cache ops on a range of addresses. This reduces duplication in > the existing L1 cache maintenance code & will allow for not adding > further duplication when introducing L2 cache support. > > Signed-off-by: Paul Burton > > --- > > Changes in v2: None > > arch/mips/lib/cache.c | 59 ++++++++++++++++----------------------------------- > 1 file changed, 18 insertions(+), 41 deletions(-) > applied to u-boot-mips, thanks! -- - Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: