From e2f165c088328fd17dde9026b4927851c8465640 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Tue, 9 Jun 2009 00:51:30 +0000 Subject: Sansa AMS: make the UNCACHED_ADDR macro work for any type of pointer, and only use pointers with it, not arrays git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21230 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/system-target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/arm/as3525/system-target.h') diff --git a/firmware/target/arm/as3525/system-target.h b/firmware/target/arm/as3525/system-target.h index daea180a64..eb59709cd3 100644 --- a/firmware/target/arm/as3525/system-target.h +++ b/firmware/target/arm/as3525/system-target.h @@ -28,7 +28,7 @@ #ifdef BOOTLOADER #define UNCACHED_ADDR(a) (a) #else -#define UNCACHED_ADDR(a) (a + 0x10000000) +#define UNCACHED_ADDR(a) ((typeof(a)) ((uintptr_t)(a) + 0x10000000)) #endif #endif /* SYSTEM_TARGET_H */ -- cgit v1.2.3