mirror of
https://github.com/vivier/EMILE.git
synced 2024-10-10 16:23:42 +00:00
Add bootx info
This commit is contained in:
parent
2ac76100fa
commit
969f6c2afa
@ -9,10 +9,14 @@
|
|||||||
|
|
||||||
.include "copymem.i"
|
.include "copymem.i"
|
||||||
|
|
||||||
.equ PC, 0x00FC
|
.equ PC, 0x00FC
|
||||||
.equ GPR, 0x0100
|
.equ GPR, 0x0100
|
||||||
.equ FPR, 0x0200
|
.equ FPR, 0x0200
|
||||||
|
|
||||||
|
#define pc PC(%sp)
|
||||||
|
#define gpr(a) GPR + 8 * a(%sp)
|
||||||
|
#define fpr(a) FPR + 8 * a(%sp)
|
||||||
|
|
||||||
.align 4
|
.align 4
|
||||||
|
|
||||||
.global enter_kernelPPC
|
.global enter_kernelPPC
|
||||||
@ -49,9 +53,13 @@ loop:
|
|||||||
|
|
||||||
/* Initialize PPC registers */
|
/* Initialize PPC registers */
|
||||||
|
|
||||||
|
move.l #0x426f6f58, gpr(3) /* 'BooX' */
|
||||||
|
move.l #bootx_infos, gpr(4)
|
||||||
|
move.l #0, gpr(5)
|
||||||
|
|
||||||
/* set up program counter */
|
/* set up program counter */
|
||||||
|
|
||||||
move.l %a1, PC(%sp)
|
move.l %a1, pc
|
||||||
|
|
||||||
/* Switch to PPC */
|
/* Switch to PPC */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user