forked from Imagelibrary/rtems
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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.
This commit is contained in:
@@ -81,7 +81,7 @@ _wdt_isp,
|
|||||||
* We try to work around this problem by using the macro below.
|
* We try to work around this problem by using the macro below.
|
||||||
*/
|
*/
|
||||||
#define isp( name, number, func)\
|
#define isp( name, number, func)\
|
||||||
asm (".global _"Str(name)"\n\t" \
|
__asm__ (".global _"Str(name)"\n\t" \
|
||||||
"_"Str(name)": \n\t" \
|
"_"Str(name)": \n\t" \
|
||||||
" mov.l r0,@-r15 \n\t" \
|
" mov.l r0,@-r15 \n\t" \
|
||||||
" mov.l r1,@-r15 \n\t" \
|
" mov.l r1,@-r15 \n\t" \
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ _oei_isp, /* I/O Port: irq 156*/
|
|||||||
* We try to work around this problem by using the macro below.
|
* We try to work around this problem by using the macro below.
|
||||||
*/
|
*/
|
||||||
#define isp( name, number, func)\
|
#define isp( name, number, func)\
|
||||||
asm (".global _"Str(name)"\n\t"\
|
__asm__ (".global _"Str(name)"\n\t"\
|
||||||
"_"Str(name)": \n\t"\
|
"_"Str(name)": \n\t"\
|
||||||
" mov.l r0,@-r15 \n\t"\
|
" mov.l r0,@-r15 \n\t"\
|
||||||
" mov.l r1,@-r15 \n\t"\
|
" mov.l r1,@-r15 \n\t"\
|
||||||
|
|||||||
@@ -866,7 +866,7 @@ __asm__ (
|
|||||||
" nop\n");
|
" nop\n");
|
||||||
|
|
||||||
extern void ipl_serial_output(const char *buf, int len);
|
extern void ipl_serial_output(const char *buf, int len);
|
||||||
asm (
|
__asm__ (
|
||||||
" .global _ipl_serial_output\n"
|
" .global _ipl_serial_output\n"
|
||||||
"_ipl_serial_output:\n"
|
"_ipl_serial_output:\n"
|
||||||
" mov #0,r0\n"
|
" mov #0,r0\n"
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ void *_VBR_Saved;
|
|||||||
" or #" __STRINGIFY__(SH7750_TSTR_STR0) ",r1\n" \
|
" or #" __STRINGIFY__(SH7750_TSTR_STR0) ",r1\n" \
|
||||||
" mov.b r1,@r0 \n"
|
" mov.b r1,@r0 \n"
|
||||||
|
|
||||||
asm (" .text\n"
|
__asm__ (" .text\n"
|
||||||
" .balign 256\n"
|
" .balign 256\n"
|
||||||
" .global __vbr_base\n"
|
" .global __vbr_base\n"
|
||||||
"__vbr_base:\n"
|
"__vbr_base:\n"
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ _dummy_isp
|
|||||||
* We try to work around this problem by using the macro below.
|
* We try to work around this problem by using the macro below.
|
||||||
*/
|
*/
|
||||||
#define isp( name, number, func)\
|
#define isp( name, number, func)\
|
||||||
asm (".global _"Str(name)"\n\t"\
|
__asm__ (".global _"Str(name)"\n\t"\
|
||||||
"_"Str(name)": \n\t"\
|
"_"Str(name)": \n\t"\
|
||||||
" mov.l r0,@-r15 \n\t"\
|
" mov.l r0,@-r15 \n\t"\
|
||||||
" mov.l r1,@-r15 \n\t"\
|
" mov.l r1,@-r15 \n\t"\
|
||||||
|
|||||||
Reference in New Issue
Block a user