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>
|
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* timer/timer.c: Include <rtems/btimer.h>.
|
* timer/timer.c: Include <rtems/btimer.h>.
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ static void init_interrupt_controller(void);
|
|||||||
void init_main(void)
|
void init_main(void)
|
||||||
{
|
{
|
||||||
/* Mask all interrupts */
|
/* Mask all interrupts */
|
||||||
asm("move.w #0x2700,%sr");
|
__asm__ ("move.w #0x2700,%sr");
|
||||||
|
|
||||||
/* Initialise base address of peripherals, VBR, etc */
|
/* Initialise base address of peripherals, VBR, etc */
|
||||||
init_ipsbar();
|
init_ipsbar();
|
||||||
@@ -172,8 +172,8 @@ static void init_flash_controller(void)
|
|||||||
|
|
||||||
See Device Errata for further details
|
See Device Errata for further details
|
||||||
*/
|
*/
|
||||||
asm("move.l #0x00000161,%d0");
|
__asm__ ("move.l #0x00000161,%d0");
|
||||||
asm("movec %d0,%FLASHBAR");
|
__asm__ ("movec %d0,%FLASHBAR");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
@@ -232,8 +232,8 @@ static void init_sram(void)
|
|||||||
DMA access to SRAM block disabled
|
DMA access to SRAM block disabled
|
||||||
All access types (supervisor and user) allowed
|
All access types (supervisor and user) allowed
|
||||||
*/
|
*/
|
||||||
asm("move.l #0x20000001,%d0");
|
__asm__ ("move.l #0x20000001,%d0");
|
||||||
asm("movec %d0,%RAMBAR");
|
__asm__ ("movec %d0,%RAMBAR");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user