diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c | 4 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c b/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c index 3ea5c35f9a..a2c298bc38 100644 --- a/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c +++ b/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c @@ -842,7 +842,7 @@ sh4uart_start_remote_tx(sh4uart *uart) * Says gdb that program finished to get out from it. */ extern void ipl_finish(void); -asm( +__asm__ ( " .global _ipl_finish\n" "_ipl_finish:\n" " mov.l __ipl_finish_value, r0\n" @@ -856,7 +856,7 @@ asm( ); extern int ipl_serial_input(int poll_count); -asm( +__asm__ ( " .global _ipl_serial_input\n" "_ipl_serial_input:\n" " mov #1,r0\n" diff --git a/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c b/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c index 46f4aa1984..f1a4446bba 100644 --- a/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c +++ b/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c @@ -48,7 +48,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"); /* * This routine provides the RTEMS interrupt management. diff --git a/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c b/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c index 3da229ef4d..77be0cf16b 100644 --- a/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c +++ b/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c @@ -309,7 +309,7 @@ asm (" .text\n" * Dummy interrupt service procedure for * interrupts being not allowed --> Trap 2 ************************************************/ -asm(" .section .text\n\ +__asm__ (" .section .text\n\ .global __dummy_isp\n\ __dummy_isp:\n\ mov.l r14,@-r15\n\ |