Add __start as ucore mipsel entry point

Signed-off-by: Harry Chen <i@harrychen.xyz>
master
Harry Chen 6 years ago
parent 42c0f22ed3
commit 67890aeb42

@ -1,8 +1,12 @@
#include <regdef.h> #include <regdef.h>
.text .text
.globl _start .globl __start
.global _start
# seems different toolchains look for different entry points
_start: _start:
__start:
# call user-program function # call user-program function
lw a0, 0(sp) lw a0, 0(sp)
addiu a1, sp, 8 addiu a1, sp, 8

Loading…
Cancel
Save