summaryrefslogtreecommitdiffstats
path: root/firmware/rolo.c
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2009-10-21 20:21:41 +0000
committerMichael Sparmann <theseven@rockbox.org>2009-10-21 20:21:41 +0000
commit940fd995a4abd83d79af4d6420ca51a3f0dd8e58 (patch)
treeb3e76a1cdec1786d519e81b786b0afea0ee97add /firmware/rolo.c
parent4e651264c2233dbcabdb8a4db16e45f07e88a133 (diff)
downloadrockbox-940fd995a4abd83d79af4d6420ca51a3f0dd8e58.tar.gz
rockbox-940fd995a4abd83d79af4d6420ca51a3f0dd8e58.tar.bz2
rockbox-940fd995a4abd83d79af4d6420ca51a3f0dd8e58.zip
storage_flush() should be done before disabling interrupts in ROLO.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23312 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r--firmware/rolo.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index c7927978bd..c206bca589 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -293,6 +293,9 @@ int rolo_load(const char* filename)
lcd_remote_update();
#endif
adc_close();
+#ifdef HAVE_STORAGE_FLUSH
+ storage_flush();
+#endif
#ifdef CPU_ARM
/* Should do these together since some ARM version should never have
@@ -348,6 +351,10 @@ int rolo_load(const char* filename)
lcd_puts(0, 1, "Executing ");
lcd_update();
+#ifdef HAVE_STORAGE_FLUSH
+ storage_flush();
+#endif
+
set_irq_level(HIGHEST_IRQ_LEVEL);
/* Calling these 2 initialization routines was necessary to get the
@@ -363,9 +370,6 @@ int rolo_load(const char* filename)
PAIOR = 0x0FA0;
#endif
#endif
-#ifdef HAVE_STORAGE_FLUSH
- storage_flush();
-#endif
rolo_restart(audiobuf, ramstart, length);
return 0; /* this is never reached */