1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2024-11-05 13:26:16 +02:00
iris/boot-helper.S
Bas Wijnen 27d9e596ad more
2009-05-25 00:31:35 +02:00

30 lines
414 B
ArmAsm

.globl __start
__start:
bal 1f
.word _gp
1:
lw $gp, 0($ra)
la $v0, __my_receiver
sw $a0, ($v0)
la $v0, __top_memory
sw $a1, ($v0)
la $v0, __my_memory
sw $a2, ($v0)
la $v0, __my_admin
sw $a3, ($v0)
la $t9, main
la $ra, 1f
jr $t9
nop
1:
// Generate an address fault.
lw $a0, -4($zero)
.comm __my_receiver, 4
.comm __top_memory, 4
.comm __my_memory, 4
.comm __my_admin, 4
.comm __my_call, 4