Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/powerpc Don't initialize %r2 for SDA2_BASE anymore. ...
details: https://anonhg.NetBSD.org/src/rev/ac37335998bd
branches: trunk
changeset: 763176:ac37335998bd
user: matt <matt%NetBSD.org@localhost>
date: Sat Mar 12 07:56:36 2011 +0000
description:
Don't initialize %r2 for SDA2_BASE anymore. It's needed for TLS.
diffstat:
lib/csu/powerpc/crt0.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r c6a7155147ae -r ac37335998bd lib/csu/powerpc/crt0.c
--- a/lib/csu/powerpc/crt0.c Sat Mar 12 07:55:09 2011 +0000
+++ b/lib/csu/powerpc/crt0.c Sat Mar 12 07:56:36 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.29 2011/03/07 05:09:10 joerg Exp $ */
+/* $NetBSD: crt0.c,v 1.30 2011/03/12 07:56:36 matt Exp $ */
/*
* Copyright (c) 1997 Jason R. Thorpe.
@@ -62,7 +62,6 @@
/*
* Initialize the Small Data Area registers.
* _SDA_BASE is defined in the SVR4 ABI for PPC.
- * _SDA2_BASE is defined in the E[mbedded] ABI for PPC.
*
* Do the initialization in a PIC manner.
*/
@@ -71,8 +70,6 @@
"1: mflr 11;"
"addis 13,11,rtld_SDA_BASE_-1b@ha;"
"addi 13,13,rtld_SDA_BASE_-1b@l;"
- "addis 2,11,rtld_SDA2_BASE_-1b@ha;"
- "addi 2,2,rtld_SDA2_BASE_-1b@l"
::: "lr" );
if ((namep = argv[0]) != NULL) { /* NULL ptr if argc = 0 */
@@ -109,7 +106,7 @@
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
*/
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.29 2011/03/07 05:09:10 joerg Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.30 2011/03/12 07:56:36 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "common.c"
Home |
Main Index |
Thread Index |
Old Index