From: Tom Rini Date: Wed, 24 Apr 2019 09:31:02 -0400 Subject: [U-Boot] bootm: Simplying cache flush code In-Reply-To: <20190327234954.15792-1-tpiepho@impinj.com> References: <20190327234954.15792-1-tpiepho@impinj.com> Message-ID: <20190424133102.GQ31207@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Mar 27, 2019 at 11:50:09PM +0000, Trent Piepho wrote: > The cache flush of the kernel load area needs to be aligned outward to > the DMA cache alignment. The operations are simpler if we think of this > as aligning the start down, ALIGN_DOWN(load, ARCH_DMA_MINALIGN), and > aligning the end up, ALIGN(load_end, ARCH_DMA_MINALIGN), and then find > the length of the flushed region by subtracting the former from the > latter. > > Cc: Tom Rini > Cc: Simon Glass > Cc: Bryan O'Donoghue > Signed-off-by: Trent Piepho > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: