1
0
Fork 0
forked from len0rd/rockbox

The UNCACHED_ADDR macro should not adjust addresses in the bootloader.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14981 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-10-04 16:10:20 +00:00
parent 84d28e8f78
commit 17b19939e6

View file

@ -70,8 +70,14 @@ static inline unsigned int current_core(void)
return core; return core;
} }
#ifdef BOOTLOADER
/* All addresses within rockbox are in IRAM in the bootloader so
are therefore uncached */
#define UNCACHED_ADDR(a) (a)
#else
#define UNCACHED_ADDR(a) \ #define UNCACHED_ADDR(a) \
((typeof (a))((uintptr_t)(a) + 0x10000000)) ((typeof (a))((uintptr_t)(a) + 0x10000000))
#endif
#ifdef CPU_PP502x #ifdef CPU_PP502x