CVS commit: src/sys/arch/hpcmips/hpcmips

2020-02-17 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Feb 17 22:52:18 UTC 2020

Modified Files:
src/sys/arch/hpcmips/hpcmips: hpcapm_machdep.c

Log Message:
spelling


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hpcmips/hpcmips/hpcapm_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/hpcmips/hpcmips/hpcapm_machdep.c
diff -u src/sys/arch/hpcmips/hpcmips/hpcapm_machdep.c:1.5 src/sys/arch/hpcmips/hpcmips/hpcapm_machdep.c:1.6
--- src/sys/arch/hpcmips/hpcmips/hpcapm_machdep.c:1.5	Wed Mar 16 13:23:41 2011
+++ src/sys/arch/hpcmips/hpcmips/hpcapm_machdep.c	Mon Feb 17 22:52:18 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: hpcapm_machdep.c,v 1.5 2011/03/16 13:23:41 tsutsui Exp $	*/
+/*	$NetBSD: hpcapm_machdep.c,v 1.6 2020/02/17 22:52:18 sevan Exp $	*/
 
 /*
  * Copyright (c) 2000 Takemura Shin
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: hpcapm_machdep.c,v 1.5 2011/03/16 13:23:41 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcapm_machdep.c,v 1.6 2020/02/17 22:52:18 sevan Exp $");
 
 #include 
 #include 
@@ -67,8 +67,8 @@ machine_standby(void)
 		vrip_splpiu();
 
 		/*
-		 * STANDBY instruction puts the CPU into power saveing
-		 * state until some interrupt occuer.
+		 * STANDBY instruction puts the CPU into power saving
+		 * state until some interrupt occurs.
 		 * It sleeps until you push the power button.
 		 */
 		__asm(".set noreorder");
@@ -99,8 +99,8 @@ machine_sleep(void)
 		vrip_splpiu();
 
 		/*
-		 * SUSPEND instruction puts the CPU into power saveing
-		 * state until some interrupt occuer.
+		 * SUSPEND instruction puts the CPU into power saving
+		 * state until some interrupt occurs.
 		 * It sleeps until you push the power button.
 		 */
 		__asm(".set noreorder");



CVS commit: src/sys/arch/hpcmips/hpcmips

2017-05-07 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun May  7 12:22:22 UTC 2017

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

Log Message:
When compiled with DEBUG/DIAGNOSTIC memset uses the stack so don't ask
it to overwrite it.  64 bytes is enough stack for any memset.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/arch/hpcmips/hpcmips/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/hpcmips/hpcmips/machdep.c
diff -u src/sys/arch/hpcmips/hpcmips/machdep.c:1.122 src/sys/arch/hpcmips/hpcmips/machdep.c:1.123
--- src/sys/arch/hpcmips/hpcmips/machdep.c:1.122	Sun May  7 12:20:50 2017
+++ src/sys/arch/hpcmips/hpcmips/machdep.c	Sun May  7 12:22:22 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.122 2017/05/07 12:20:50 skrll Exp $	*/
+/*	$NetBSD: machdep.c,v 1.123 2017/05/07 12:22:22 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
@@ -69,7 +69,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.122 2017/05/07 12:20:50 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.123 2017/05/07 12:22:22 skrll Exp $");
 
 #include "opt_vr41xx.h"
 #include "opt_tx39xx.h"
@@ -427,7 +427,7 @@ mach_init(int argc, char *argv[], struct
 		u_int32_t sp;
 		__asm volatile("move %0, $29" : "=r"(sp));
 		KDASSERT(sp > KERNBASE + 0x400);
-		memset((void *)(KERNBASE + 0x400), 0, sp - (KERNBASE + 0x400));
+		memset((void *)(KERNBASE + 0x400), 0, sp - (KERNBASE + 0x400) - 64);
 	}
 
 	printf("mem_cluster_cnt = %d\n", mem_cluster_cnt);



CVS commit: src/sys/arch/hpcmips/hpcmips

2017-05-07 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun May  7 12:20:50 UTC 2017

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

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/arch/hpcmips/hpcmips/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/hpcmips/hpcmips/machdep.c
diff -u src/sys/arch/hpcmips/hpcmips/machdep.c:1.121 src/sys/arch/hpcmips/hpcmips/machdep.c:1.122
--- src/sys/arch/hpcmips/hpcmips/machdep.c:1.121	Thu Dec 22 14:47:57 2016
+++ src/sys/arch/hpcmips/hpcmips/machdep.c	Sun May  7 12:20:50 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.121 2016/12/22 14:47:57 cherry Exp $	*/
+/*	$NetBSD: machdep.c,v 1.122 2017/05/07 12:20:50 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
@@ -69,7 +69,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.121 2016/12/22 14:47:57 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.122 2017/05/07 12:20:50 skrll Exp $");
 
 #include "opt_vr41xx.h"
 #include "opt_tx39xx.h"
@@ -129,7 +129,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 
 #include 
 #endif
 
-#if NBICONSDEV > 0 
+#if NBICONSDEV > 0
 #include 
 #include 
 #include 
@@ -193,13 +193,13 @@ extern void stacktrace(void); /*XXX*/
 
 /*
  * Do all the stuff that locore normally does before calling main().
- * Process arguments passed to us by the boot loader. 
+ * Process arguments passed to us by the boot loader.
  * Return the first page address following the system.
  */
 void
 mach_init(int argc, char *argv[], struct bootinfo *bi)
 {
-	/* 
+	/*
 	 * this routines stack is never polluted since stack pointer
 	 * is lower than kernel text segment, and at exiting, stack pointer
 	 * is changed to proc0.
@@ -273,8 +273,8 @@ mach_init(int argc, char *argv[], struct
 	kloader_bootinfo_set(, argc, argv, bi, false);
 #endif
 
-	/* 
-	 * CPU core Specific Function Hooks 
+	/*
+	 * CPU core Specific Function Hooks
 	 */
 #if defined(VR41XX) && defined(TX39XX)
 	if (platid_match(, _mask_CPU_MIPS_VR_41XX))
@@ -291,8 +291,8 @@ mach_init(int argc, char *argv[], struct
 #endif
 
 #if NBICONSDEV > 0
-	/* 
-	 *  bicons don't need actual device initialize.  only bootinfo needed. 
+	/*
+	 *  bicons don't need actual device initialize.  only bootinfo needed.
 	 */
 	__bicons_enable = (bicons_init() == 0);
 	if (__bicons_enable)
@@ -419,8 +419,8 @@ mach_init(int argc, char *argv[], struct
 #else
 	(*platform.mem_init)((paddr_t)kernend - MIPS_KSEG0_START);
 #endif
-	/* 
-	 *  Clear currently unused D-RAM area 
+	/*
+	 *  Clear currently unused D-RAM area
 	 *  (For reboot Windows CE clearly)
 	 */
 	{



CVS commit: src/sys/arch/hpcmips/hpcmips

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

Modified Files:
src/sys/arch/hpcmips/hpcmips: interrupt.c kloader_machdep.c

Log Message:
#include mips/locore.h


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/hpcmips/hpcmips/interrupt.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/hpcmips/hpcmips/kloader_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/hpcmips/hpcmips/interrupt.c
diff -u src/sys/arch/hpcmips/hpcmips/interrupt.c:1.19 src/sys/arch/hpcmips/hpcmips/interrupt.c:1.20
--- src/sys/arch/hpcmips/hpcmips/interrupt.c:1.19	Tue Jun  9 22:46:36 2015
+++ src/sys/arch/hpcmips/hpcmips/interrupt.c	Fri Jun 26 22:17:59 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: interrupt.c,v 1.19 2015/06/09 22:46:36 matt Exp $	*/
+/*	$NetBSD: interrupt.c,v 1.20 2015/06/26 22:17:59 matt Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: interrupt.c,v 1.19 2015/06/09 22:46:36 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: interrupt.c,v 1.20 2015/06/26 22:17:59 matt Exp $);
 
 #include opt_vr41xx.h
 #include opt_tx39xx.h
@@ -42,6 +42,8 @@ __KERNEL_RCSID(0, $NetBSD: interrupt.c,
 #include sys/malloc.h
 #include sys/intr.h
 
+#include mips/locore.h
+
 #include machine/sysconf.h
 
 void

Index: src/sys/arch/hpcmips/hpcmips/kloader_machdep.c
diff -u src/sys/arch/hpcmips/hpcmips/kloader_machdep.c:1.8 src/sys/arch/hpcmips/hpcmips/kloader_machdep.c:1.9
--- src/sys/arch/hpcmips/hpcmips/kloader_machdep.c:1.8	Tue Jun  9 22:46:36 2015
+++ src/sys/arch/hpcmips/hpcmips/kloader_machdep.c	Fri Jun 26 22:17:59 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: kloader_machdep.c,v 1.8 2015/06/09 22:46:36 matt Exp $	*/
+/*	$NetBSD: kloader_machdep.c,v 1.9 2015/06/26 22:17:59 matt Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@@ -27,12 +27,13 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kloader_machdep.c,v 1.8 2015/06/09 22:46:36 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: kloader_machdep.c,v 1.9 2015/06/26 22:17:59 matt Exp $);
 
 #include sys/param.h
 #include sys/cpu.h
 #include sys/systm.h
 
+#include mips/locore.h
 #include mips/cache.h
 
 #include machine/sysconf.h



CVS commit: src/sys/arch/hpcmips/hpcmips

2014-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 25 13:38:25 UTC 2014

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

Log Message:
add missing include


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/sys/arch/hpcmips/hpcmips/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/hpcmips/hpcmips/machdep.c
diff -u src/sys/arch/hpcmips/hpcmips/machdep.c:1.117 src/sys/arch/hpcmips/hpcmips/machdep.c:1.118
--- src/sys/arch/hpcmips/hpcmips/machdep.c:1.117	Mon Mar 24 16:06:32 2014
+++ src/sys/arch/hpcmips/hpcmips/machdep.c	Tue Mar 25 09:38:25 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.117 2014/03/24 20:06:32 christos Exp $	*/
+/*	$NetBSD: machdep.c,v 1.118 2014/03/25 13:38:25 christos Exp $	*/
 
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
@@ -69,7 +69,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.117 2014/03/24 20:06:32 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.118 2014/03/25 13:38:25 christos Exp $);
 
 #include opt_vr41xx.h
 #include opt_tx39xx.h
@@ -97,6 +97,7 @@ __KERNEL_RCSID(0, $NetBSD: machdep.c,v 
 #include sys/ksyms.h
 #include sys/device.h
 #include sys/lwp.h
+#include sys/cpu.h
 
 #include uvm/uvm_extern.h
 



CVS commit: src/sys/arch/hpcmips/hpcmips

2011-02-26 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Feb 26 12:08:30 UTC 2011

Modified Files:
src/sys/arch/hpcmips/hpcmips: cpu.c

Log Message:
Explicitly include mips/locore.h for mips_locoresw.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/hpcmips/hpcmips/cpu.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/hpcmips/hpcmips/cpu.c
diff -u src/sys/arch/hpcmips/hpcmips/cpu.c:1.17 src/sys/arch/hpcmips/hpcmips/cpu.c:1.18
--- src/sys/arch/hpcmips/hpcmips/cpu.c:1.17	Sun Feb 20 07:58:14 2011
+++ src/sys/arch/hpcmips/hpcmips/cpu.c	Sat Feb 26 12:08:30 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.c,v 1.17 2011/02/20 07:58:14 matt Exp $	*/
+/*	$NetBSD: cpu.c,v 1.18 2011/02/26 12:08:30 tsutsui Exp $	*/
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
  * Copyright (c) 1999-2001 SATO Kazumi, All rights reserved.
@@ -56,7 +56,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.17 2011/02/20 07:58:14 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.18 2011/02/26 12:08:30 tsutsui Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -64,6 +64,8 @@
 #include sys/cpu.h
 #include sys/bus.h
 
+#include mips/locore.h
+
 #include machine/sysconf.h
 #include machine/autoconf.h
 



CVS commit: src/sys/arch/hpcmips/hpcmips

2010-11-14 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Mon Nov 15 06:25:43 UTC 2010

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

Log Message:
curlwp needs sys/lwp.h.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/arch/hpcmips/hpcmips/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/hpcmips/hpcmips/machdep.c
diff -u src/sys/arch/hpcmips/hpcmips/machdep.c:1.111 src/sys/arch/hpcmips/hpcmips/machdep.c:1.112
--- src/sys/arch/hpcmips/hpcmips/machdep.c:1.111	Tue Mar  2 21:17:31 2010
+++ src/sys/arch/hpcmips/hpcmips/machdep.c	Mon Nov 15 06:25:42 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.111 2010/03/02 21:17:31 pooka Exp $	*/
+/*	$NetBSD: machdep.c,v 1.112 2010/11/15 06:25:42 uebayasi Exp $	*/
 
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
@@ -108,7 +108,7 @@
  */
 
 #include sys/cdefs.h			/* RCS ID  Copyright macro defns */
-__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.111 2010/03/02 21:17:31 pooka Exp $);
+__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.112 2010/11/15 06:25:42 uebayasi Exp $);
 
 #include opt_vr41xx.h
 #include opt_tx39xx.h
@@ -135,6 +135,7 @@
 #include sys/boot_flag.h
 #include sys/ksyms.h
 #include sys/device.h
+#include sys/lwp.h
 
 #include uvm/uvm_extern.h