Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/ns32k Declare the global register variable kps_strin...
details: https://anonhg.NetBSD.org/src/rev/37272cca4ec9
branches: trunk
changeset: 522600:37272cca4ec9
user: matthias <matthias%NetBSD.org@localhost>
date: Fri Feb 22 13:46:30 2002 +0000
description:
Declare the global register variable kps_strings before including anything
as this needs to be done before any function is defined (and there seems
to be a function definition in one of the include files).
diffstat:
lib/csu/ns32k/crt0.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (44 lines):
diff -r 9ebf58dce8ff -r 37272cca4ec9 lib/csu/ns32k/crt0.c
--- a/lib/csu/ns32k/crt0.c Fri Feb 22 12:46:53 2002 +0000
+++ b/lib/csu/ns32k/crt0.c Fri Feb 22 13:46:30 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.15 1998/09/05 13:20:08 pk Exp $ */
+/* $NetBSD: crt0.c,v 1.16 2002/02/22 13:46:30 matthias Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -36,12 +36,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stdlib.h>
-
-#include "common.h"
-
-extern void start __P((char *)) __asm("start");
-
/*
* Stack layout provided to start:
*
@@ -60,6 +54,12 @@
register struct ps_strings *kps_strings __asm("r7");
+#include <stdlib.h>
+
+#include "common.h"
+
+extern void start __P((char *)) __asm("start");
+
void
start(arg0)
char *arg0;
@@ -103,7 +103,7 @@
* is the entrypoint. (Not really necessary, just to avoid confusion).
*/
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.15 1998/09/05 13:20:08 pk Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.16 2002/02/22 13:46:30 matthias Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef DYNAMIC
Home |
Main Index |
Thread Index |
Old Index