Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/hpcmips Make file compile:



details:   https://anonhg.NetBSD.org/src/rev/7f5d07d81c7d
branches:  trunk
changeset: 534961:7f5d07d81c7d
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Wed Aug 07 07:21:08 2002 +0000

description:
Make file compile:
- garbage collect cpu_sysctl()
- fix pasto
- include uvm/uvm_extern.h
>From FUKAUMI Naoki in PR 17850.

diffstat:

 sys/arch/hpcmips/hpcmips/machdep.c |  40 ++++++-------------------------------
 1 files changed, 7 insertions(+), 33 deletions(-)

diffs (80 lines):

diff -r c91adcab9b2e -r 7f5d07d81c7d sys/arch/hpcmips/hpcmips/machdep.c
--- a/sys/arch/hpcmips/hpcmips/machdep.c        Wed Aug 07 05:58:01 2002 +0000
+++ b/sys/arch/hpcmips/hpcmips/machdep.c        Wed Aug 07 07:21:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.75 2002/08/04 01:41:23 gmcgarry Exp $    */
+/*     $NetBSD: machdep.c,v 1.76 2002/08/07 07:21:08 gmcgarry Exp $    */
 
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.75 2002/08/04 01:41:23 gmcgarry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.76 2002/08/07 07:21:08 gmcgarry Exp $");
 
 #include "opt_vr41xx.h"
 #include "opt_tx39xx.h"
@@ -99,12 +99,15 @@
 #include <sys/mount.h>
 #include <sys/boot_flag.h>
 
+#include <uvm/uvm_extern.h>
+
+#include <uvm/uvm_extern.h>
+
 #include <ufs/mfs/mfs_extern.h>        /* mfs_initminiroot() */
 #include <dev/cons.h>          /* cntab access (cpu_reboot) */
 
 #include <machine/psl.h>
 #include <machine/sysconf.h>
-#include <machine/bootinfo.h>
 #include <machine/platid.h>
 #include <machine/platid_mask.h>
 #include <machine/kloader.h>
@@ -150,7 +153,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 */
@@ -620,35 +623,6 @@
        bufinit();
 }
 
-
-/*
- * Machine dependent system variables.
- */
-int
-cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
-    size_t newlen, struct proc *p)
-{
-
-       /* all sysctl names at this level are terminal */
-       if (namelen != 1)
-               return (ENOTDIR);               /* overloaded */
-
-       switch (name[0]) {
-       case CPU_CONSDEV:
-               return (sysctl_rdstruct(oldp, oldlenp, newp, &cn_tab->cn_dev,
-                   sizeof cn_tab->cn_dev));
-       case CPU_ROOT_DEVICE:
-               return (sysctl_rdstring(oldp, oldlenp, newp, 
-                   root_device->dv_xname));
-       case CPU_BOOTED_KERNEL:
-               return (sysctl_rdstring(oldp, oldlenp, newp, 
-                   booted_kernel));
-       default:
-               return (EOPNOTSUPP);
-       }
-       /* NOTREACHED */
-}
-
 void
 cpu_reboot(int howto, char *bootstr)
 {



Home | Main Index | Thread Index | Old Index