From 6d2bad9b10746604fcf325de07937dce16221409 Mon Sep 17 00:00:00 2001 From: theseven Date: Wed, 21 Oct 2009 20:21:41 +0000 Subject: [PATCH] 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 c7927978b..c206bca58 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 */ -- 2.11.4.GIT