mirror of
https://github.com/vivier/EMILE.git
synced 2024-10-10 16:23:42 +00:00
preliminary PPC support
This commit is contained in:
parent
3721ba9227
commit
8dcd2e3be9
11
second/PPC_asm.S
Normal file
11
second/PPC_asm.S
Normal file
@ -0,0 +1,11 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
.chip 68020
|
||||
|
||||
.global PPC_disable_cache
|
||||
PPC_disable_cache:
|
||||
rts
|
44
second/enter_kernelPPC.S
Normal file
44
second/enter_kernelPPC.S
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
.chip 68020
|
||||
|
||||
.include "copymem.i"
|
||||
|
||||
.align 4
|
||||
|
||||
.global enter_kernelPPC
|
||||
enter_kernelPPC:
|
||||
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
|
||||
|
||||
/* 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_kernelPPC
|
||||
end_enter_kernelPPC:
|
Loading…
Reference in New Issue
Block a user