From 940fd995a4abd83d79af4d6420ca51a3f0dd8e58 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Wed, 21 Oct 2009 20:21:41 +0000 Subject: 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 --- firmware/rolo.c | 10 +++++++--- 1 file 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 @@ -362,9 +369,6 @@ int rolo_load(const char* filename) defined(ARCHOS_FMRECORDER) PAIOR = 0x0FA0; #endif -#endif -#ifdef HAVE_STORAGE_FLUSH - storage_flush(); #endif rolo_restart(audiobuf, ramstart, length); -- cgit v1.2.3