From a1bc3401f1c65524ded556f131283b8864ac3733 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 15 Nov 2009 17:23:25 +0000 Subject: Fix a few possible problems discovered in -O0 / eabi experiments. - two essential parts of Sansa AMS drivers are optimzed away in newer gcc, so mark them volatile. - use "r" instead of "i" (which is apparently invalid syntax) for the input list in some inline assembly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23634 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c') diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c index 735020cfad..c9dd69d47b 100644 --- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c +++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c @@ -46,7 +46,7 @@ static int xoffset = 20; /* needed for flip */ /* we need to write a red pixel for correct button reads * (see lcd_button_support()),but that must not happen while the lcd is updating * so block lcd_button_support the during updates */ -static bool lcd_busy = false; +static volatile int lcd_busy = false; static inline void lcd_delay(int x) { -- cgit v1.2.3