2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>

* include/tm27.h, startup/bspstart.c:
	Use "__asm__" instead of "asm" for improved c99-compliance.
This commit is contained in:
Ralf Corsepius
2011-02-11 11:58:04 +00:00
parent 65095b200c
commit bcd26b2f56
3 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/tm27.h, startup/bspstart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.

View File

@@ -26,7 +26,7 @@
set_vector( handler, 0x06, 1 ); \
}
#define Cause_tm27_intr() asm volatile("raise 0x06;" : :);
#define Cause_tm27_intr() __asm__ volatile("raise 0x06;" : :);
#define Clear_tm27_intr() /* empty */

View File

@@ -118,9 +118,9 @@ void Init_PLL (void)
*((uint16_t*)PLL_CTL) = PLL_MSEL|PLL_DF;
/* Commands to set PLL values */
asm("cli r0;");
asm("idle;");
asm("sti r0;");
__asm__ ("cli r0;");
__asm__ ("idle;");
__asm__ ("sti r0;");
/* Delay for PLL stabilization */
for (n=0; n<200; n++) {}