diff options
author | Stefan Roese <sr@denx.de> | 2016-11-18 17:21:52 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-28 15:10:34 -0500 |
commit | 384b1d507f1057d97e7cd086f9ea649549300a44 (patch) | |
tree | dbbee8834bfb2d8a1211cac8bfa2980a18ed8be3 /drivers/bootcount/bootcount_ram.c | |
parent | ca388143ce87e5b1ae6c3b5eb41fcf8bcecdc0dd (diff) |
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: Stefan Roese <sr@denx.de>
Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/bootcount/bootcount_ram.c')
-rw-r--r-- | drivers/bootcount/bootcount_ram.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bootcount/bootcount_ram.c b/drivers/bootcount/bootcount_ram.c index e0d2669b71..ad4cc569a3 100644 --- a/drivers/bootcount/bootcount_ram.c +++ b/drivers/bootcount/bootcount_ram.c @@ -37,7 +37,8 @@ void bootcount_store(ulong a) /* Make sure the data is written to RAM */ 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) |