mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
system: update MEM_ALIGN_ATTR for targets with CPU caches
MEM_ALIGN_ATTR should take advantage of cache line alignment on all native CPUs which define it, not just ARM CPUs. (This could arguably be done for hosted targets too, but we don't necessarily know the size of a cache line there.) Change-Id: Ife9302105ea57388afd55ce31da848b00b5b1b25
This commit is contained in:
parent
de285741bf
commit
98f762316f
1 changed files with 2 additions and 2 deletions
|
@ -307,8 +307,8 @@ static inline void cpu_boost_unlock(void)
|
|||
|
||||
/* Define MEM_ALIGN_ATTR which may be used to align e.g. buffers for faster
|
||||
* access. */
|
||||
#if defined(CPU_ARM)
|
||||
/* Use ARMs cache alignment. */
|
||||
#if defined(HAVE_CPU_CACHE_ALIGN)
|
||||
/* Align to a cache line. */
|
||||
#define MEM_ALIGN_ATTR CACHEALIGN_ATTR
|
||||
#define MEM_ALIGN_SIZE CACHEALIGN_SIZE
|
||||
#elif defined(CPU_COLDFIRE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue