summaryrefslogtreecommitdiffstats
path: root/firmware/rolo.c
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2008-04-15 20:02:24 +0000
committerRob Purchase <shotofadds@rockbox.org>2008-04-15 20:02:24 +0000
commitd88c5667d9bef918259b2e1719315a4e948be30a (patch)
treef800d212d7d5ddcfd363eef856fa3c2c625806fa /firmware/rolo.c
parentb36d3c0be228fbf7ad1b193d11d8a3365a045a43 (diff)
downloadrockbox-d88c5667d9bef918259b2e1719315a4e948be30a.tar.gz
rockbox-d88c5667d9bef918259b2e1719315a4e948be30a.tar.bz2
rockbox-d88c5667d9bef918259b2e1719315a4e948be30a.zip
Kill some D2 yellows with a simplistic Rolo implementation and NAND driver cleanup. Correct some comments in crt0.s and remove two erroneous null words from rockbox.bin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17127 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r--firmware/rolo.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index eb49a18c01..848b35b056 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -167,6 +167,15 @@ void rolo_restart(const unsigned char* source, unsigned char* dest,
"mov r0, #0x10000000 \n"
"mov pc, r0 \n"
);
+
+#elif defined(CPU_TCC780X)
+ /* Flush cache */
+ flush_icache();
+
+ asm volatile(
+ "mov pc, %0 \n"
+ : : "r"(dest)
+ );
#endif
}
#endif
@@ -216,7 +225,8 @@ int rolo_load(const char* filename)
length = filesize(fd) - FIRMWARE_OFFSET_FILE_DATA;
-#if defined(CPU_COLDFIRE) || defined(CPU_PP) || (CONFIG_CPU==DM320)
+#if defined(CPU_COLDFIRE) || defined(CPU_PP) || (CONFIG_CPU==DM320) \
+ || defined(CPU_TCC780X)
/* Read and save checksum */
lseek(fd, FIRMWARE_OFFSET_FILE_CRC, SEEK_SET);
if (read(fd, &file_checksum, 4) != 4) {