From e396402137b7ca0413f7e13b11b983ae10fcf913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Mon, 15 Oct 2012 05:45:32 +0000 Subject: [PATCH] modified as of Vincenct's suggestions --- BaS_GNU/sources/startcf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BaS_GNU/sources/startcf.c b/BaS_GNU/sources/startcf.c index 6525108..c720253 100644 --- a/BaS_GNU/sources/startcf.c +++ b/BaS_GNU/sources/startcf.c @@ -2,7 +2,7 @@ void startup(void) { - asm volatile( + __asm__ __volatile__( " .extern _initialize_hardware\n\t" " bra.s warmstart\n\t" " jmp ___BOOT_FLASH + 8\n\t" /* that's also our reset vector */ @@ -15,7 +15,7 @@ void startup(void) /* clobber */ : "d0", "memory"); /* Initialize MBAR */ - asm volatile( + __asm__ __volatile__( " MOVE.L #__MBAR,D0\n\t" " MOVEC D0,MBAR\n\t" " MOVE.L D0,_rt_mbar\n\t" @@ -24,7 +24,7 @@ void startup(void) /* clobber */ : "d0", "memory"); /* mmu off */ - asm volatile( + __asm__ __volatile__ ( " move.l #__MMUBAR+1,d0\n\t" " movec d0,MMUBAR\n\t" /* output */ : @@ -33,7 +33,7 @@ void startup(void) MCF_MMU_MMUCR = 0L; /* MMU off */ - asm volatile( + __asm__ __volatile__( /* Initialize RAMBARs: locate SRAM and validate it */ " move.l #__RAMBAR0 + 0x7,d0\n\t | supervisor only" " movec d0,RAMBAR0\n\t"