From 3d0af835baaeef051cdbd0f15fa86dc811c085ac Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 11 Feb 2011 09:57:25 +0000 Subject: =?UTF-8?q?2011-02-11=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * sh7032/delay/delay.c, sh7032/score/cpu_asm.c, sh7032/score/ispsh7032.c, sh7045/sci/sci.c, sh7045/sci/sci_termios.c, sh7045/score/cpu_asm.c, sh7045/score/ispsh7045.c, sh7750/sci/sh4uart.c, sh7750/score/cpu_asm.c, sh7750/score/ispsh7750.c, shgdb/score/cpu_asm.c, shgdb/score/ispshgdb.c: Use "__asm__" instead of "asm" for improved c99-compliance. --- c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c | 2 +- c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libcpu/sh/sh7032/score') 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\ -- cgit v1.2.3