Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun3/sun3x Arrange for "sysctl hw.machine" to show ...
details: https://anonhg.NetBSD.org/src/rev/658bc54fed63
branches: trunk
changeset: 467854:658bc54fed63
user: gwr <gwr%NetBSD.org@localhost>
date: Tue Mar 30 06:12:40 1999 +0000
description:
Arrange for "sysctl hw.machine" to show sun3x.
(Needed by the miniroot, etc.)
diffstat:
sys/arch/sun3/sun3x/machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c95d9ad6a7d0 -r 658bc54fed63 sys/arch/sun3/sun3x/machdep.c
--- a/sys/arch/sun3/sun3x/machdep.c Tue Mar 30 04:29:09 1999 +0000
+++ b/sys/arch/sun3/sun3x/machdep.c Tue Mar 30 06:12:40 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.43 1999/03/26 23:41:37 mycroft Exp $ */
+/* $NetBSD: machdep.c,v 1.44 1999/03/30 06:12:40 gwr Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -469,7 +469,9 @@
/*
* Info for CTL_HW
*/
-char machine[16] = MACHINE; /* from <machine/param.h> */
+
+/* Non-standard name here to distinguish Sun3 from Sun3X. */
+char machine[16] = "sun3x"; /* Not same as MACHINE! */
char cpu_model[120];
/*
@@ -791,7 +793,6 @@
kseg_p->c_size = sizeof(*chdr_p);
/* Fill in cpu_kcore_hdr_t part. */
- /* Can NOT use machine[] as the name! */
strncpy(chdr_p->name, "sun3x", sizeof(chdr_p->name));
chdr_p->page_size = NBPG;
chdr_p->kernbase = KERNBASE;
Home |
Main Index |
Thread Index |
Old Index