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:30:18 +00:00
parent abc8ad0f6d
commit 11d510598c
2 changed files with 10 additions and 5 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

@@ -51,7 +51,7 @@ static void init_interrupt_controller(void);
void init_main(void)
{
/* Mask all interrupts */
asm("move.w #0x2700,%sr");
__asm__ ("move.w #0x2700,%sr");
/* Initialise base address of peripherals, VBR, etc */
init_ipsbar();
@@ -172,8 +172,8 @@ static void init_flash_controller(void)
See Device Errata for further details
*/
asm("move.l #0x00000161,%d0");
asm("movec %d0,%FLASHBAR");
__asm__ ("move.l #0x00000161,%d0");
__asm__ ("movec %d0,%FLASHBAR");
}
/*********************************************************************
@@ -232,8 +232,8 @@ static void init_sram(void)
DMA access to SRAM block disabled
All access types (supervisor and user) allowed
*/
asm("move.l #0x20000001,%d0");
asm("movec %d0,%RAMBAR");
__asm__ ("move.l #0x20000001,%d0");
__asm__ ("movec %d0,%RAMBAR");
}
/*********************************************************************