diff options
Diffstat (limited to 'c/src/lib/libcpu/sh/sh7032')
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/delay/delay.c | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/sh/sh7032/delay/delay.c b/c/src/lib/libcpu/sh/sh7032/delay/delay.c index 16645ea200..26f2c4f7f6 100644 --- a/c/src/lib/libcpu/sh/sh7032/delay/delay.c +++ b/c/src/lib/libcpu/sh/sh7032/delay/delay.c @@ -43,7 +43,7 @@ void CPU_delay( uint32_t microseconds ) register uint32_t clicks_per_usec = bsp_clicks_per_second / 1000000; register uint32_t _delay = (microseconds) * (clicks_per_usec); - asm volatile ( + __asm__ volatile ( "0: add #-4,%0\n\ nop\n\ cmp/pl %0\n\ diff --git a/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c b/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c index ad2633c98f..229bbd07b9 100644 --- a/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c +++ b/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c @@ -49,7 +49,7 @@ extern proc_ptr _Hardware_isr_Table[]; unsigned long *_old_stack_ptr; #endif -register unsigned long *stack_ptr asm("r15"); +register unsigned long *stack_ptr __asm__ ("r15"); /* * sh_set_irq_priority diff --git a/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c b/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c index 83ab10081f..982b1906db 100644 --- a/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c +++ b/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c @@ -122,7 +122,7 @@ asm (".global _"Str(name)"\n\t" \ * Dummy interrupt service procedure for * interrupts being not allowed --> Trap 34 ************************************************/ -asm(" .section .text\n\ +__asm__ (" .section .text\n\ .global __dummy_isp\n\ __dummy_isp:\n\ mov.l r14,@-r15\n\ |