Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips mipsco and sgimips also implement bootinf...



details:   https://anonhg.NetBSD.org/src/rev/b3949a2475fe
branches:  trunk
changeset: 534833:b3949a2475fe
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sun Aug 04 03:16:19 2002 +0000

description:
mipsco and sgimips also implement bootinfo, but didn't provide
the CPU_BOOTED_KERNEL sysctl variable.

diffstat:

 sys/arch/mips/mips/mips_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r ab136dc39b14 -r b3949a2475fe sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Sun Aug 04 02:27:51 2002 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Sun Aug 04 03:16:19 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.140 2002/08/04 02:27:51 gmcgarry Exp $      */
+/*     $NetBSD: mips_machdep.c,v 1.141 2002/08/04 03:16:19 gmcgarry Exp $      */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -120,7 +120,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.140 2002/08/04 02:27:51 gmcgarry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.141 2002/08/04 03:16:19 gmcgarry Exp $");
 
 #include "opt_cputype.h"
 #include "opt_compat_netbsd.h"
@@ -156,7 +156,7 @@
 #include <mips/pte.h>
 #include <machine/cpu.h>
 
-#ifdef __pmax__
+#if defined(__pmax__) || defined(__mipsco__) || defined(__sgimips__)
 #include <machine/bootinfo.h>          /* XXX pmax only so far */
 #endif
 
@@ -1124,7 +1124,7 @@
                        consdev = NODEV;
                return (sysctl_rdstruct(oldp, oldlenp, newp, &consdev,
                    sizeof consdev));
-#if defined(__pmax__)
+#if defined(__pmax__) || defined(__mipsco__) || defined(__sgimips__)
        case CPU_BOOTED_KERNEL:
                bibp = lookup_bootinfo(BTINFO_BOOTPATH);
                if(!bibp)



Home | Main Index | Thread Index | Old Index