mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-10 05:25:00 +00:00
First revision
This commit is contained in:
49
second/enter_kernelnoMMU.S
Normal file
49
second/enter_kernelnoMMU.S
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
.chip 68020
|
||||
|
||||
.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
|
||||
|
||||
ori.w #0x0700, %sr
|
||||
|
||||
/* copy kernel to destination address */
|
||||
|
||||
move.l %a2, %a1
|
||||
|
||||
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
|
Reference in New Issue
Block a user