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 /firmware/target | |
parent | b8435f54464fd50c145d321b118d773ea05ef6a2 (diff) |
Make some asm() statements volatile
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21313 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-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 { \ } while (0) -#define SLEEP(x) { register int __i; for(__i=0; __i<x; __i++) {asm("nop"); asm("nop");} } +#define SLEEP(x) { register int __i; for(__i=0; __i<x; __i++) asm volatile("nop\n nop\n"); } #define DELAY SLEEP(700000); static void _display_pin_init(void) { 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 { \ } while (0) -#define SLEEP(x) for(i=0; i<x; i++) asm("nop"); asm("nop"); +#define SLEEP(x) for(i=0; i<x; i++) asm volatile("nop\n nop\n"); #define DELAY SLEEP(700000); static void _display_pin_init(void) { |