]> git.sur5r.net Git - u-boot/commit
bootm: Align cache flush begin address
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Sun, 15 Apr 2018 10:48:17 +0000 (11:48 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 17 Apr 2018 21:45:08 +0000 (17:45 -0400)
commitbbac9222dcf2a4c233269e67ea38ddfb3536d85b
treebff7109c2afc9958662ee27af99fdef27ef3307c
parent721881c4178dc5ca1f201c9d9f8e86d32499666f
bootm: Align cache flush begin address

commit b4d956f6bc0f ("bootm: Align cache flush end address correctly")
aligns the end address of the cache flush operation to a cache-line size to
ensure lower-layers in the code accept the range provided and flush.

A similar action should be taken for the begin address of a cache flush
operation. The load address may not be aligned to a cache-line boundary, so
ensure the passed address is aligned.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reported-by: Breno Matheus Lima <brenomatheus@gmail.com>
Suggested-by: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Tested-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/bootm.c