diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-06-16 18:35:57 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-06-16 18:35:57 +0000 |
commit | 5a5cccf10b587c9bd07f571bdf4234d86f6c3287 (patch) | |
tree | a4ac75c918a4ac4d4c70929e166d05f8c7020ae1 | |
parent | b8435f54464fd50c145d321b118d773ea05ef6a2 (diff) | |
download | rockbox-5a5cccf10b587c9bd07f571bdf4234d86f6c3287.tar.gz rockbox-5a5cccf10b587c9bd07f571bdf4234d86f6c3287.zip |
Make some asm() statements volatile
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21313 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c | 2 | ||||
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c index a2240e0f7d..f9ce62f7da 100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c | |||
@@ -37,7 +37,7 @@ do { \ | |||
37 | } while (0) | 37 | } while (0) |
38 | 38 | ||
39 | 39 | ||
40 | #define SLEEP(x) { register int __i; for(__i=0; __i<x; __i++) {asm("nop"); asm("nop");} } | 40 | #define SLEEP(x) { register int __i; for(__i=0; __i<x; __i++) asm volatile("nop\n nop\n"); } |
41 | #define DELAY SLEEP(700000); | 41 | #define DELAY SLEEP(700000); |
42 | static void _display_pin_init(void) | 42 | static void _display_pin_init(void) |
43 | { | 43 | { |
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c b/firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c index a91e041184..b3cc6980e1 100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c | |||
@@ -37,7 +37,7 @@ do { \ | |||
37 | } while (0) | 37 | } while (0) |
38 | 38 | ||
39 | 39 | ||
40 | #define SLEEP(x) for(i=0; i<x; i++) asm("nop"); asm("nop"); | 40 | #define SLEEP(x) for(i=0; i<x; i++) asm volatile("nop\n nop\n"); |
41 | #define DELAY SLEEP(700000); | 41 | #define DELAY SLEEP(700000); |
42 | static void _display_pin_init(void) | 42 | static void _display_pin_init(void) |
43 | { | 43 | { |