EMILE/second/enter_kernel030.S

58 lines
732 B
ArmAsm
Raw Normal View History

2004-02-15 20:46:45 +00:00
/*
*
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
*
*/
2004-06-09 12:24:24 +00:00
.chip 68030
2004-06-07 22:13:00 +00:00
.include "copymem.i"
2004-06-07 18:51:24 +00:00
.align 4
2004-03-04 22:50:11 +00:00
.global enter_kernel030
enter_kernel030:
2004-02-15 20:46:45 +00:00
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
2005-05-13 22:36:48 +00:00
ori.w #0x0700, %sr
2004-02-15 20:46:45 +00:00
/* 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 */
2004-02-15 20:46:45 +00:00
move.l %a2, %a1
2004-02-15 20:46:45 +00:00
2004-06-07 22:13:00 +00:00
copymem %a0, %a2, %d0
2004-02-15 20:46:45 +00:00
/* jump into kernel */
jmp %a1@
2004-02-15 20:46:45 +00:00
/* never comes here... I hope */
unlk %fp
rts
2004-03-04 22:50:11 +00:00
.global end_enter_kernel030
end_enter_kernel030: