CVS commit: src/sys/arch/mipsco/mipsco

2015-06-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jun 26 22:55:41 UTC 2015

Modified Files:
src/sys/arch/mipsco/mipsco: machdep.c

Log Message:
Cleanup includes
Use cpu_startup_common()


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/mipsco/mipsco/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mipsco/mipsco/machdep.c
diff -u src/sys/arch/mipsco/mipsco/machdep.c:1.78 src/sys/arch/mipsco/mipsco/machdep.c:1.79
--- src/sys/arch/mipsco/mipsco/machdep.c:1.78	Sun Jun  8 07:01:30 2014
+++ src/sys/arch/mipsco/mipsco/machdep.c	Fri Jun 26 22:55:40 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.78 2014/06/08 07:01:30 he Exp $	*/
+/*	$NetBSD: machdep.c,v 1.79 2015/06/26 22:55:40 matt Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,66 +39,48 @@
 
 #include sys/cdefs.h			/* RCS ID  Copyright macro defns */
 
-__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.78 2014/06/08 07:01:30 he Exp $);
+__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.79 2015/06/26 22:55:40 matt Exp $);
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
 #include opt_ddb.h
 #include opt_kgdb.h
 #include opt_modular.h
+#include opt_execfmt.h
+
+#include zsc.h			/* XXX */
+#include com.h			/* XXX */
+#include ksyms.h
 
 #include sys/param.h
-#include sys/systm.h
-#include sys/signalvar.h
-#include sys/kernel.h
-#include sys/proc.h
-#include sys/buf.h
-#include sys/reboot.h
+#include sys/boot_flag.h
 #include sys/conf.h
-#include sys/file.h
-#include sys/callout.h
-#include sys/malloc.h
-#include sys/mbuf.h
-#include sys/msgbuf.h
-#include sys/ioctl.h
+#include sys/cpu.h
 #include sys/device.h
-#include sys/exec.h
-#include sys/mount.h
-#include sys/syscallargs.h
+#include sys/intr.h
 #include sys/kcore.h
 #include sys/ksyms.h
-#include sys/cpu.h
+#include sys/kernel.h
+#include sys/reboot.h
+#include sys/systm.h
 
 #include uvm/uvm_extern.h
 
 #include ufs/mfs/mfs_extern.h		/* mfs_initminiroot() */
 
-#include machine/cpu.h
-#include machine/reg.h
-#include machine/psl.h
-#include machine/pte.h
+#include dev/clock_subr.h
+#include dev/cons.h
 
 #ifdef DDB
 #include machine/db_machdep.h
 #include ddb/db_extern.h
 #endif
 
-#include machine/intr.h
 #include machine/mainboard.h
 #include machine/sysconf.h
 #include machine/autoconf.h
 #include machine/bootinfo.h
 #include machine/prom.h
-#include dev/clock_subr.h
-#include dev/cons.h
-
-#include sys/boot_flag.h
-
-#include opt_execfmt.h
-
-#include zsc.h			/* XXX */
-#include com.h			/* XXX */
-#include ksyms.h
 
 /* maps for VM objects */
 
@@ -328,41 +310,7 @@ mach_init(int argc, char *argv[], char *
 void
 cpu_startup(void)
 {
-	vaddr_t minaddr, maxaddr;
-	char pbuf[9];
-#ifdef DEBUG
-	extern int pmapdebug;
-	int opmapdebug = pmapdebug;
-
-	pmapdebug = 0;
-#endif
-
-	/*
-	 * Good {morning,afternoon,evening,night}.
-	 */
-	printf(%s%s, copyright, version);
-	printf(%s\n, cpu_getmodel());
-	format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
-	printf(total memory = %s\n, pbuf);
-
-	minaddr = 0;
-	/*
-	 * Allocate a submap for physio
-	 */
-	phys_map = uvm_km_suballoc(kernel_map, minaddr, maxaddr,
-   VM_PHYS_SIZE, true, false, NULL);
-
-	/*
-	 * No need to allocate an mbuf cluster submap.  Mbuf clusters
-	 * are allocated via the pool allocator, and we use KSEG to
-	 * map those pages.
-	 */
-
-#ifdef DEBUG
-	pmapdebug = opmapdebug;
-#endif
-	format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
-	printf(avail memory = %s\n, pbuf);
+	cpu_startup_common();
 }
 
 /*



CVS commit: src/sys/arch/mipsco/mipsco

2014-06-08 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Sun Jun  8 07:01:30 UTC 2014

Modified Files:
src/sys/arch/mipsco/mipsco: machdep.c

Log Message:
Kill a pair of set-but-not-used local variables.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/arch/mipsco/mipsco/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mipsco/mipsco/machdep.c
diff -u src/sys/arch/mipsco/mipsco/machdep.c:1.77 src/sys/arch/mipsco/mipsco/machdep.c:1.78
--- src/sys/arch/mipsco/mipsco/machdep.c:1.77	Mon Mar 24 20:06:32 2014
+++ src/sys/arch/mipsco/mipsco/machdep.c	Sun Jun  8 07:01:30 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.77 2014/03/24 20:06:32 christos Exp $	*/
+/*	$NetBSD: machdep.c,v 1.78 2014/06/08 07:01:30 he Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
 
 #include sys/cdefs.h			/* RCS ID  Copyright macro defns */
 
-__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.77 2014/03/24 20:06:32 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.78 2014/06/08 07:01:30 he Exp $);
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -183,7 +183,6 @@ mach_init(int argc, char *argv[], char *
 	extern char edata[], end[];
 	const char *bi_msg;
 #if NKSYMS || defined(DDB) || defined(MODULAR)
-	int nsym = 0;
 	char *ssym = 0;
 	char *esym = 0;
 	struct btinfo_symtab *bi_syms;
@@ -218,7 +217,6 @@ mach_init(int argc, char *argv[], char *
 
 	/* Load sysmbol table if present */
 	if (bi_syms != NULL) {
-		nsym = bi_syms-nsym;
 		ssym = (void *)bi_syms-ssym;
 		esym = (void *)bi_syms-esym;
 		kernend = (void *)mips_round_page(esym);
@@ -591,9 +589,7 @@ null_cnpollc(dev_t dev, int on)
 void
 consinit(void)
 {
-	int zs_unit;
 
-	zs_unit = 0;
 	cn_tab = consdev_zs;
 
 	(*cn_tab-cn_init)(cn_tab);



CVS commit: src/sys/arch/mipsco/mipsco

2011-03-10 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Thu Mar 10 17:30:12 UTC 2011

Modified Files:
src/sys/arch/mipsco/mipsco: mips_3x30.c

Log Message:
Set correct struct clockframe .intr value for hardclock(9).


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/mipsco/mipsco/mips_3x30.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mipsco/mipsco/mips_3x30.c
diff -u src/sys/arch/mipsco/mipsco/mips_3x30.c:1.13 src/sys/arch/mipsco/mipsco/mips_3x30.c:1.14
--- src/sys/arch/mipsco/mipsco/mips_3x30.c:1.13	Sun Feb 20 07:56:16 2011
+++ src/sys/arch/mipsco/mipsco/mips_3x30.c	Thu Mar 10 17:30:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_3x30.c,v 1.13 2011/02/20 07:56:16 matt Exp $	*/
+/*	$NetBSD: mips_3x30.c,v 1.14 2011/03/10 17:30:12 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #define	__INTR_PRIVATE
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mips_3x30.c,v 1.13 2011/02/20 07:56:16 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: mips_3x30.c,v 1.14 2011/03/10 17:30:12 tsutsui Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -89,7 +89,7 @@
 		
 		cf.pc = pc;
 		cf.sr = status;
-		cf.intr = (curcpu()-ci_idepth  0);
+		cf.intr = (curcpu()-ci_idepth  1);
 
 		rambo_clkintr(cf);
 	}