finished ELF toolchain integration

This commit is contained in:
Markus Fröschle
2012-10-30 20:26:43 +00:00
parent 7e4fab176b
commit 83c1b1c1df
2 changed files with 13 additions and 9 deletions

View File

@@ -1,15 +1,16 @@
.equ MCF_MMU_MMUCR, __MMUBAR + 0
.global _startup
_startup:
.extern _initialize_hardware
.extern _rt_mbar
_startup:
bra.s warmstart
jmp ___BOOT_FLASH + 8 /* that's also our reset vector */
/* disable interrupts */
warmstart:
move.w #0x2700,sr
move.w #0x2700,SR
/* Initialize MBAR */
@@ -25,7 +26,7 @@ warmstart:
move.l d0,MCF_MMU_MMUCR
/* Initialize RAMBARs: locate SRAM and validate it */
move.l #__RAMBAR0 + 0x7,d0 /* supervisor only */
move.l #__RAMBAR0 + 0x7,%d0 /* supervisor only */
movec d0,RAMBAR0
move.l #__RAMBAR1 + 0x1,d0
movec d0,RAMBAR1