mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Make storage alignement use cache alignement macros
Introduce STORAGE_ALIGN_DOWN, STORAGE_PAD (using new CACHE_PAD) and STORAGE_OVERLAP (using new CACHE_OVERLAP), make them useful only when PROC_NEEDS_CACHEALIGN and STORAGE_NEEDS_ALIGN are defined Modify PP and nano2g system-target.h accordingly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25336 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
43bc2e586a
commit
a8d1690ffe
6 changed files with 33 additions and 25 deletions
|
|
@ -29,6 +29,11 @@
|
|||
#define CPUFREQ_NORMAL 47923200
|
||||
#define CPUFREQ_MAX 191692800
|
||||
|
||||
/* DMA engine needs aligned addresses */
|
||||
#define PROC_NEEDS_CACHEALIGN
|
||||
#define CACHEALIGN_BITS (4) /* 2^4 = 16 bytes */
|
||||
#define NEEDS_STORAGE_ALIGN
|
||||
|
||||
#define inl(a) (*(volatile unsigned long *) (a))
|
||||
#define outl(a,b) (*(volatile unsigned long *) (b) = (a))
|
||||
#define inb(a) (*(volatile unsigned char *) (a))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue