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:
parent
84d28e8f78
commit
17b19939e6
1 changed files with 6 additions and 0 deletions
|
|
@ -70,8 +70,14 @@ static inline unsigned int current_core(void)
|
|||
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) \
|
||||
((typeof (a))((uintptr_t)(a) + 0x10000000))
|
||||
#endif
|
||||
|
||||
#ifdef CPU_PP502x
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue