From 67890aeb4205083d5a95b1f70de92ae39b549c8c Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Sat, 6 Apr 2019 00:38:11 +0800 Subject: [PATCH] Add __start as ucore mipsel entry point Signed-off-by: Harry Chen --- ucore/src/arch/mipsel/initcode.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ucore/src/arch/mipsel/initcode.S b/ucore/src/arch/mipsel/initcode.S index 0c56ff2..9f01acd 100644 --- a/ucore/src/arch/mipsel/initcode.S +++ b/ucore/src/arch/mipsel/initcode.S @@ -1,8 +1,12 @@ #include .text -.globl _start +.globl __start +.global _start + +# seems different toolchains look for different entry points _start: +__start: # call user-program function lw a0, 0(sp) addiu a1, sp, 8