2005-05-16 21:29:58 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
|
|
*
|
|
|
|
*/
|
2005-06-14 19:32:09 +00:00
|
|
|
.chip 68000
|
2005-05-16 21:29:58 +00:00
|
|
|
|
|
|
|
.include "copymem.i"
|
|
|
|
|
|
|
|
.align 4
|
|
|
|
|
|
|
|
.global enter_kernelnoMMU
|
|
|
|
enter_kernelnoMMU:
|
|
|
|
link.w %fp,#0
|
|
|
|
|
|
|
|
/* 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-09-19 19:03:39 +00:00
|
|
|
/* entry point */
|
|
|
|
|
|
|
|
move.l 20(%fp), %a1
|
|
|
|
|
2005-05-16 21:29:58 +00:00
|
|
|
/* 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_kernelnoMMU
|
|
|
|
end_enter_kernelnoMMU:
|
|
|
|
|
|
|
|
.global noMMU_disable_cache
|
|
|
|
noMMU_disable_cache:
|
|
|
|
rts
|