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

* startup/cfinit.c:
	Use "__asm__" instead of "asm" for improved c99-compliance.
This commit is contained in:
Ralf Corsepius
2011-02-11 12:36:10 +00:00
parent 7fdce449b7
commit 89815e1096
2 changed files with 13 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* startup/cfinit.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.

View File

@@ -118,8 +118,8 @@ static void disable_watchdog_timer(void)
**********************************************************************/
static void disable_cache(void)
{
asm("move.l #0x01000000,%d0");
asm("movec %d0,%CACR");
__asm__ ("move.l #0x01000000,%d0");
__asm__ ("movec %d0,%CACR");
}
/*********************************************************************
@@ -182,13 +182,13 @@ static void init_cache(void)
* Cache is enabled in bspstart.c
*/
#if 0
asm("move.l #0xa0000600,%d0");
asm("movec %d0,%CACR");
__asm__ ("move.l #0xa0000600,%d0");
__asm__ ("movec %d0,%CACR");
#endif
asm("move.l #0x4001c020,%d0");
asm("movec %d0,%ACR0");
asm("move.l #0x00000000,%d0");
asm("movec %d0,%ACR1");
__asm__ ("move.l #0x4001c020,%d0");
__asm__ ("movec %d0,%ACR0");
__asm__ ("move.l #0x00000000,%d0");
__asm__ ("movec %d0,%ACR1");
}
/*********************************************************************