EMILE/second/head.S
2004-02-26 22:52:35 +00:00

39 lines
501 B
ArmAsm

/*
*
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
*
*/
.global _start
_start:
/* identify system */
bsr arch_init
/* initialize console, so we can debug ;-) */
bsr console_init
/* initialize memory, so we can work */
bsr memory_init
/* retrieve machine info */
bsr bootinfo_init;
/* allocate stack, so we can jump */
pea 0x2000
bsr malloc
add.l #0x2000 - 16, %d0
move.l %d0, %sp
/* begin to work */
bsr main
/* We guess to never come here */
loop:
bra loop