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 Initialize $gp



details:   https://anonhg.NetBSD.org/src/rev/5c657a73618c
branches:  trunk
changeset: 787596:5c657a73618c
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jun 25 16:47:47 2013 +0000

description:
Initialize $gp

diffstat:

 lib/csu/arch/mips/crt0.S |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 7de5c4fff742 -r 5c657a73618c lib/csu/arch/mips/crt0.S
--- a/lib/csu/arch/mips/crt0.S  Tue Jun 25 15:37:17 2013 +0000
+++ b/lib/csu/arch/mips/crt0.S  Tue Jun 25 16:47:47 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.S,v 1.1 2013/06/22 02:37:09 matt Exp $ */
+/* $NetBSD: crt0.S,v 1.2 2013/06/25 16:47:47 matt Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <mips/asm.h>
 
-RCSID("$NetBSD: crt0.S,v 1.1 2013/06/22 02:37:09 matt Exp $")
+RCSID("$NetBSD: crt0.S,v 1.2 2013/06/25 16:47:47 matt Exp $")
 
 STRONG_ALIAS(_start,__start)
 
@@ -49,6 +49,8 @@
  */
 
 NESTED_NOPROFILE(__start, CALLFRAME_SIZ, ra)
+       SETUP_GP
+       SETUP_GP64(t3, __start)
        move    a0, a1          /* cleanup */
        move    a1, a2          /* Obj_Entry */
        move    a2, a3          /* ps_strings */



Home | Main Index | Thread Index | Old Index