modified as of Vincenct's suggestions

This commit is contained in:
Markus Fröschle
2012-10-15 05:45:32 +00:00
parent b1faffa639
commit e396402137

View File

@@ -2,7 +2,7 @@
void startup(void) void startup(void)
{ {
asm volatile( __asm__ __volatile__(
" .extern _initialize_hardware\n\t" " .extern _initialize_hardware\n\t"
" bra.s warmstart\n\t" " bra.s warmstart\n\t"
" jmp ___BOOT_FLASH + 8\n\t" /* that's also our reset vector */ " jmp ___BOOT_FLASH + 8\n\t" /* that's also our reset vector */
@@ -15,7 +15,7 @@ void startup(void)
/* clobber */ : "d0", "memory"); /* clobber */ : "d0", "memory");
/* Initialize MBAR */ /* Initialize MBAR */
asm volatile( __asm__ __volatile__(
" MOVE.L #__MBAR,D0\n\t" " MOVE.L #__MBAR,D0\n\t"
" MOVEC D0,MBAR\n\t" " MOVEC D0,MBAR\n\t"
" MOVE.L D0,_rt_mbar\n\t" " MOVE.L D0,_rt_mbar\n\t"
@@ -24,7 +24,7 @@ void startup(void)
/* clobber */ : "d0", "memory"); /* clobber */ : "d0", "memory");
/* mmu off */ /* mmu off */
asm volatile( __asm__ __volatile__ (
" move.l #__MMUBAR+1,d0\n\t" " move.l #__MMUBAR+1,d0\n\t"
" movec d0,MMUBAR\n\t" " movec d0,MMUBAR\n\t"
/* output */ : /* output */ :
@@ -33,7 +33,7 @@ void startup(void)
MCF_MMU_MMUCR = 0L; /* MMU off */ MCF_MMU_MMUCR = 0L; /* MMU off */
asm volatile( __asm__ __volatile__(
/* Initialize RAMBARs: locate SRAM and validate it */ /* Initialize RAMBARs: locate SRAM and validate it */
" move.l #__RAMBAR0 + 0x7,d0\n\t | supervisor only" " move.l #__RAMBAR0 + 0x7,d0\n\t | supervisor only"
" movec d0,RAMBAR0\n\t" " movec d0,RAMBAR0\n\t"