From d43546b05c98bf7ae9c91a47d0204ded77ca6a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Mon, 15 Oct 2012 06:21:40 +0000 Subject: [PATCH] calculation of cache flush adresses was wrong --- BaS_GNU/sources/sysinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaS_GNU/sources/sysinit.c b/BaS_GNU/sources/sysinit.c index b8582a4..2dc170e 100644 --- a/BaS_GNU/sources/sysinit.c +++ b/BaS_GNU/sources/sysinit.c @@ -805,8 +805,8 @@ void initialize_hardware(void) { *src++ = *dst++; } while (src < (uint8_t *) ©_end); - flushDataCacheRegion(Bas_base, (uint8_t *) ©_end - copy_start); - flushInstructionCacheRegion(Bas_base, (uint8_t *) ©_end - copy_start); + flushDataCacheRegion(&Bas_base, (uint8_t *) ©_end - copy_start); + flushInstructionCacheRegion(&Bas_base, (uint8_t *) ©_end - copy_start); __asm__ __volatile__( " .global _copy_start | \n\t"