summaryrefslogtreecommitdiffstats
path: root/firmware/rolo.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-09-29 06:56:21 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-09-29 06:56:21 +0000
commit3e7d4f0d147199d503ab24708ff787850bb6a990 (patch)
treef4d2db2cae1a94de3c58f8d0840b2766c3ff1d38 /firmware/rolo.c
parentda55251a35d8ad6c0b8b9e62904798212caba46f (diff)
downloadrockbox-3e7d4f0d147199d503ab24708ff787850bb6a990.tar.gz
rockbox-3e7d4f0d147199d503ab24708ff787850bb6a990.tar.bz2
rockbox-3e7d4f0d147199d503ab24708ff787850bb6a990.zip
Anti-red?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14899 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r--firmware/rolo.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index 1e9fc45984..9f83f916f9 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -51,11 +51,10 @@
* TODO: Use the mailboxes built into the PP processor for this
*/
+#if NUM_CORES > 1
volatile unsigned char IDATA_ATTR cpu_message = 0;
volatile unsigned char IDATA_ATTR cpu_reply = 0;
-#if NUM_CORES > 1
extern int cop_idlestackbegin[];
-#endif
void rolo_restart_cop(void) ICODE_ATTR;
void rolo_restart_cop(void)
@@ -92,7 +91,8 @@ void rolo_restart_cop(void)
"mov pc, r0 \n"
);
}
-#endif
+#endif /* NUM_CORES > 1 */
+#endif /* CPU_PP */
static void rolo_error(const char *text)
{
@@ -154,11 +154,13 @@ void rolo_restart(const unsigned char* source, unsigned char* dest,
for (i=0;i<8;i++)
memmapregs[i]=0;
+#if NUM_CORES > 1
/* Tell the COP it's safe to continue rebooting */
cpu_message = 1;
/* Wait for the COP to tell us it is rebooting */
while(cpu_reply != 2);
+#endif
asm volatile(
"mov r0, #0x10000000 \n"
@@ -226,7 +228,7 @@ int rolo_load(const char* filename)
file_checksum = betoh32(file_checksum);
#endif
-#ifdef CPU_PP
+#if defined(CPU_PP) && NUM_CORES > 1
lcd_puts(0, 2, "Waiting for coprocessor...");
lcd_update();
rolo_restart_cop();