Change alignment macros to allow further performance optimization. Define the CACHEAL...
commitc7492dc3c0349558550b697cd7410dd958a77ff4
authorBuschel <Buschel@a1c6a512-1295-4272-9138-f99709370657>
Sun, 21 Nov 2010 12:27:01 +0000 (21 12:27 +0000)
committerBuschel <Buschel@a1c6a512-1295-4272-9138-f99709370657>
Sun, 21 Nov 2010 12:27:01 +0000 (21 12:27 +0000)
treedb04e994c7be9d634a49245928a99f6888e576b5
parentc2bfb5756d1a56a5cca94d6a165869a9f0118d33
Change alignment macros to allow further performance optimization. Define the CACHEALIGN macros for all ARM CPUs, the used alignment size is derived from CACHEALIGN_BITS which has been defined for each supported ARM CPU with r28619. The default alignment size for ARM is set to 32 bytes as new  -- not yet supported -- ARM CPUs will most probably need this alignment. To be able to differ between ARM and other CPUs a new macro called MEM_ALIGN_ATTR is introduced. This equals CACHEALIGN_ATTR for ARM, 16 byte alignment for Coldfire and is kept empty for other CPUs. MEM_ALIGN_ATTR is available system wide. From measurements it is expected that the usage of MEM_ALIGN_ATTR can give significant performance gain on ARM11 CPUs.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28625 a1c6a512-1295-4272-9138-f99709370657
firmware/export/system.h
firmware/target/arm/system-target.h