summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-05-05 13:30:29 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-05-05 13:30:29 +0000
commit0218397cf4f0420a258a8ff6d87cc630cb3bada6 (patch)
treebdbb8dc54258e5aa23ede898e2bca90b8a459206 /bootloader
parent9a54d9645df4b08789dcf5a7a74e60bf84e407be (diff)
downloadrockbox-0218397cf4f0420a258a8ff6d87cc630cb3bada6.tar.gz
rockbox-0218397cf4f0420a258a8ff6d87cc630cb3bada6.tar.bz2
rockbox-0218397cf4f0420a258a8ff6d87cc630cb3bada6.zip
Gigabeat S bootloader: 1) Switch order of .vectors to be contiguous with initialized sections. 2) Clean all caches in main before doing anything else because vector copying counts as self-modifying code. Up to v.00000012.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17381 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/gigabeat-s.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootloader/gigabeat-s.c b/bootloader/gigabeat-s.c
index 8858479de3..abfe57ce1f 100644
--- a/bootloader/gigabeat-s.c
+++ b/bootloader/gigabeat-s.c
@@ -147,8 +147,11 @@ void main(void)
char tarstring[6];
char model[5];
+ /* Flush and invalidate all caches (because vectors were written) */
+ invalidate_icache();
+
lcd_clear_display();
- printf("Gigabeat S Rockbox Bootloader v.00000011");
+ printf("Gigabeat S Rockbox Bootloader v.00000012");
system_init();
kernel_init();
printf("kernel init done");