summaryrefslogtreecommitdiff
path: root/firmware/export/pp5020.h
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2007-03-04 20:06:41 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2007-03-04 20:06:41 +0000
commit82f9056988331572e01231d70fadc64b7ab76c6f (patch)
tree9f1d33b904516fd5eeac2067e4afb32ce5e990df /firmware/export/pp5020.h
parent74e572c9d600247ee795b206da3715f6af442a25 (diff)
downloadrockbox-82f9056988331572e01231d70fadc64b7ab76c6f.tar.gz
rockbox-82f9056988331572e01231d70fadc64b7ab76c6f.zip
Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pp5020.h')
-rw-r--r--firmware/export/pp5020.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/export/pp5020.h b/firmware/export/pp5020.h
index 3d205a0ea1..a34f1251c9 100644
--- a/firmware/export/pp5020.h
+++ b/firmware/export/pp5020.h
@@ -30,6 +30,15 @@
30#define PROC_ID_CPU 0x55 30#define PROC_ID_CPU 0x55
31#define PROC_ID_COP 0xaa 31#define PROC_ID_COP 0xaa
32 32
33/* Mailboxes */
34/* Each processor has two mailboxes it can write to and two which
35 it can read from. We define the first to be for sending messages
36 and the second for replying to messages */
37#define CPU_MESSAGE (*(volatile unsigned long *)(0x60001000))
38#define COP_MESSAGE (*(volatile unsigned long *)(0x60001004))
39#define CPU_REPLY (*(volatile unsigned long *)(0x60001008))
40#define COP_REPLY (*(volatile unsigned long *)(0x6000100c))
41
33/* Interrupts */ 42/* Interrupts */
34#define CPU_INT_STAT (*(volatile unsigned long*)(0x64004000)) 43#define CPU_INT_STAT (*(volatile unsigned long*)(0x64004000))
35#define COP_INT_STAT (*(volatile unsigned long*)(0x60004004)) 44#define COP_INT_STAT (*(volatile unsigned long*)(0x60004004))