wut/crt/crt0.S
2017-04-13 00:44:05 +01:00

28 lines
328 B
ArmAsm

.extern main
.extern exit
.extern __init_wut_newlibc
.global _start
_start:
stwu 1, -0x8(1)
stw 3, 0(1)
stw 4, 4(1)
bl __init_wut_newlibc
bl fsDevInit
lwz 3, 0(1)
lwz 4, 4(1)
bl main
stw 3, 0(1)
bl fsDevExit
lwz 3, 0(1)
addi 1, 1, 0x8
b exit
.global __wrap___eabi
__wrap___eabi:
blr
.global __init
__init:
blr