Subject: kern/17850: hpcmips GENERIC kernel compile error (hpcmips/machdep.c broken)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <naoki@fukaumi.org>
List: netbsd-bugs
Date: 08/06/2002 11:34:53
>Number: 17850
>Category: kern
>Synopsis: hpcmips GENERIC kernel compile error (hpcmips/machdep.c broken)
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 05 19:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: FUKAUMI Naoki
>Release: NetBSD 1.6E today (2002/8/6) source
>Organization:
FUKAUMI Naoki
>Environment:
System: NetBSD nforce.naobsd.org 1.6E NetBSD 1.6E (NFORCE) #0: Sat Aug 3 19:02:55 JST 2002 fun@nforce.naobsd.org:/usr/obj/i386/sys/arch/i386/compile/NFORCE i386
Architecture: i386
Machine: i386
>Description:
I can't compile hpcmips GENERIC kernel (on i386 1.6E with build.sh)
I think this change is not enough for hpcmips
http://mail-index.netbsd.org/source-changes/2002/08/04/0017.html
>How-To-Repeat:
make GENERIC kernel
>Fix:
patch
1. need uvm_extern.h (instead of sysctl.h)
2. extern ``char'' cpu_model[]
3. XXX #if 0 cpu_sysctl()
XXX lost "case CPU_ROOT_DEVICE" and "case CPU_BOOTED_KERNEL"
XXX hpcmips use original (hpc shared) bootinfo.h (in arch/hpc/)
--- src/sys/arch/hpcmips/hpcmips/machdep.c.orig Mon Aug 5 07:27:38 2002
+++ src/sys/arch/hpcmips/hpcmips/machdep.c Tue Aug 6 11:09:20 2002
@@ -99,6 +99,8 @@
#include <sys/mount.h>
#include <sys/boot_flag.h>
+#include <uvm/uvm_extern.h>
+
#include <ufs/mfs/mfs_extern.h> /* mfs_initminiroot() */
#include <dev/cons.h> /* cntab access (cpu_reboot) */
@@ -150,7 +152,7 @@
#endif
/* the following is used externally (sysctl_hw) */
-extern cpu_model[128];
+extern char cpu_model[];
char cpu_name[40]; /* set cpu depend xx_init() */
struct cpu_info cpu_info_store; /* only one cpu */
@@ -621,6 +623,7 @@
}
+#if 0
/*
* Machine dependent system variables.
*/
@@ -648,6 +651,7 @@
}
/* NOTREACHED */
}
+#endif
void
cpu_reboot(int howto, char *bootstr)
>Release-Note:
>Audit-Trail:
>Unformatted: