plan9fox/sys/src/9/sgi/init9.s
cinap_lenrek 177cbace73 sgi: work in progress kernel for sgi mips machines (only tested with r5k indy)
this provides basic console support using the ARC bios routines
theu uartarcs driver. and has native seeq ethernet driver which
was written by reading the 2ed devseq driver as i have no
documentation on the hardware. mmu and trap code is based on the
routerboard kernel.
2015-03-28 05:15:40 +01:00

9 lines
164 B
ArmAsm

TEXT _main(SB), $8
MOVW $setR30(SB), R30
MOVW $boot(SB), R1
ADDU $12, R29, R2 /* get a pointer to 0(FP) */
MOVW R1, 4(R29)
MOVW R2, 8(R29)
JAL startboot(SB)