]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootcount: Fix misaligned cache operation
authorAlex Kiernan <alex.kiernan@gmail.com>
Wed, 25 Jul 2018 11:45:58 +0000 (11:45 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 3 Aug 2018 23:53:54 +0000 (19:53 -0400)
commitfe9805fc7fe757072f8020ad154aa5aae6241afe
tree4d3cabcd4325a2f82273bbcba40c1e24ec6a771c
parent1416e2d22531c6d4ba9c9c8a4766cbe906ed7ce0
bootcount: Fix misaligned cache operation

1947c2d2a0 introduces cache line flushes for the bootcounter, but if
the start address is not aligned then the flush causes warnings of
the form:

  CACHE: Misaligned operation at range [4030b7fc4030b83c]

Align both the start and end of the buffer (possibly crossing multiple
lines).

Fixes: 1947c2d2a0 ("bootcount: flush after storing the bootcounter")
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
drivers/bootcount/bootcount.c