Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/arch/mips Make sure t9 ($25) is properly set before ...
details: https://anonhg.NetBSD.org/src/rev/38e15e187b8d
branches: trunk
changeset: 325131:38e15e187b8d
user: matt <matt%NetBSD.org@localhost>
date: Sun Dec 08 06:32:36 2013 +0000
description:
Make sure t9 ($25) is properly set before calling ___start
diffstat:
lib/csu/arch/mips/crt0.S | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 9f66f1d5a9b4 -r 38e15e187b8d lib/csu/arch/mips/crt0.S
--- a/lib/csu/arch/mips/crt0.S Sun Dec 08 04:07:38 2013 +0000
+++ b/lib/csu/arch/mips/crt0.S Sun Dec 08 06:32:36 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.S,v 1.2 2013/06/25 16:47:47 matt Exp $ */
+/* $NetBSD: crt0.S,v 1.3 2013/12/08 06:32:36 matt Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <mips/asm.h>
-RCSID("$NetBSD: crt0.S,v 1.2 2013/06/25 16:47:47 matt Exp $")
+RCSID("$NetBSD: crt0.S,v 1.3 2013/12/08 06:32:36 matt Exp $")
STRONG_ALIAS(_start,__start)
@@ -53,6 +53,8 @@
SETUP_GP64(t3, __start)
move a0, a1 /* cleanup */
move a1, a2 /* Obj_Entry */
- move a2, a3 /* ps_strings */
- j _C_LABEL(___start)
+ PTR_L t9,%call16(_C_LABEL(___start))(gp)
+ move a2, a3 /* ps_strings */
+ .reloc 1f,R_MIPS_JALR,___start
+1: jr t9
END(__start)
Home |
Main Index |
Thread Index |
Old Index