forked from Imagelibrary/rtems
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:
@@ -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>.
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user