EMILE/second/enter_kernel030.S

58 lines
734 B
ArmAsm

/*
*
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
*
*/
.chip 68030
.include "copymem.i"
.align 4
.global enter_kernel030
enter_kernel030:
link.w %fp,#-8
/* get physical start address of kernel */
move.l 8(%fp), %a0
/* size of image to relocate */
move.l 12(%fp), %d0
/* destination addresse */
move.l 16(%fp), %a2
/* entry point */
move.l 20(%fp), %a1
/* disable MMU */
lea -8(%fp), %a1
pmove %tc, %a1@
bclr #7, %a1@
pmove %a1@, %tc
clr.l %a1@
pmove %a1@, %tt0
pmove %a1@, %tt1
/* copy kernel to destination address */
copymem %a0, %a2, %d0
/* jump into kernel */
jmp %a1@
/* never comes here... I hope */
unlk %fp
rts
.global end_enter_kernel030
end_enter_kernel030: