mirror of
git://projects.qi-hardware.com/iris.git
synced 2024-11-04 23:46:17 +02:00
29 lines
390 B
ArmAsm
29 lines
390 B
ArmAsm
.globl __start
|
|
|
|
__start:
|
|
bal 1f
|
|
.word _gp
|
|
1:
|
|
lw $gp, 0($ra)
|
|
la $v0, __my_receiver
|
|
sw $a0, ($v0)
|
|
la $v0, __my_thread
|
|
sw $a1, ($v0)
|
|
la $v0, __my_memory
|
|
sw $a2, ($v0)
|
|
la $v0, __my_call
|
|
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 __my_thread, 4
|
|
.comm __my_memory, 4
|
|
.comm __my_call, 4
|