Displaying 1 result from an estimated 1 matches for "3f1c2a9".
Did you mean:
3f1c2a9a
2019 Jan 18
0
[klibc:master] mips/mips64: simplify crt0 code
..., v0 # Kernel-provided atexit() pointer
+ and sp, -8 # Align stack to 8 bytes
+ subu sp, 16 # Allocate 16 bytes for function call
jal __libc_init
+ teq zero, zero # Crash if we return
END(__start)
diff --git a/usr/klibc/arch/mips64/crt0.S b/usr/klibc/arch/mips64/crt0.S
index 775a919..3f1c2a9 100644
--- a/usr/klibc/arch/mips64/crt0.S
+++ b/usr/klibc/arch/mips64/crt0.S
@@ -10,22 +10,12 @@
#include <machine/asm.h>
-NESTED(__start, 64, sp)
- daddiu sp,sp,-64
- sd zero, 32(sp)
-
- # Initialize gp
- lui gp,%highest(_gp) # load highest "halfword"
- daddiu gp,gp,%hi...