Skip to content
Snippets Groups Projects
Commit 384b1d50 authored by Stefan Roese's avatar Stefan Roese Committed by Tom Rini
Browse files

bootcounter_ram: Fix misaligned cache warning


This patch fixes the warning about misaligned cache on Armada XP:

CACHE: Misaligned operation at range [7ffff000, 7fffffac]

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent ca388143
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,8 @@ void bootcount_store(ulong a) ...@@ -37,7 +37,8 @@ void bootcount_store(ulong a)
/* Make sure the data is written to RAM */ /* Make sure the data is written to RAM */
flush_dcache_range((ulong)&save_addr[0], flush_dcache_range((ulong)&save_addr[0],
(ulong)&save_addr[REPEAT_PATTERN + OFFS_PATTERN]); (((ulong)&save_addr[REPEAT_PATTERN + OFFS_PATTERN] &
~(ARCH_DMA_MINALIGN - 1)) + ARCH_DMA_MINALIGN));
} }
ulong bootcount_load(void) ulong bootcount_load(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment