]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Always flush in cache line size granularity
authorAlexander Graf <agraf@suse.de>
Mon, 11 Apr 2016 21:20:39 +0000 (23:20 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 18 Apr 2016 21:11:39 +0000 (17:11 -0400)
commit36c37a8481551a6958fd91ccafc6936bf81e00f3
tree01bf5f1510787a0e17eba9486a4c11e570d39be1
parent50c5d43cb4f5611dda478f3f53f68fc991c0bef2
efi_loader: Always flush in cache line size granularity

The cache line flush helpers only work properly when they get aligned
start and end addresses. Round our flush range to cache line size. It's
safe because we're guaranteed to flush within a single page which has the
same cache attributes.

Reported-by: Marek Vasut <marex@denx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Tested-by: Andreas Färber <afaerber@suse.de>
lib/efi_loader/efi_runtime.c