Module Name:    src
Committed By:   martin
Date:           Mon Mar 31 11:41:01 UTC 2014

Modified Files:
        src/sys/arch/playstation2/include: intr.h param.h vmparam.h

Log Message:
Adapt to -current


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/playstation2/include/intr.h
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/playstation2/include/param.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/playstation2/include/vmparam.h

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/playstation2/include/intr.h
diff -u src/sys/arch/playstation2/include/intr.h:1.11 src/sys/arch/playstation2/include/intr.h:1.12
--- src/sys/arch/playstation2/include/intr.h:1.11	Mon Mar 31 11:25:49 2014
+++ src/sys/arch/playstation2/include/intr.h	Mon Mar 31 11:41:01 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.h,v 1.11 2014/03/31 11:25:49 martin Exp $	*/
+/*	$NetBSD: intr.h,v 1.12 2014/03/31 11:41:01 martin Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -33,45 +33,7 @@
 #define _PLAYSTATION2_INTR_H_
 #ifdef _KERNEL
 
-#include <mips/locore.h>
-
-/* Interrupt sharing types. */
-#define	IST_NONE		0	/* none */
-#define	IST_PULSE		1	/* pulsed */
-#define	IST_EDGE		2	/* edge-triggered */
-#define	IST_LEVEL		3	/* level-triggered */
-
-/* Interrupt priority levels */
-#define	IPL_NONE		0	/* nothing */
-#define IPL_SOFTCLOCK		1	/* timeouts */
-#define	IPL_SOFTBIO		1	/* bio */
-#define	IPL_SOFTNET		2	/* protocol stacks */
-#define IPL_SOFTSERIAL		2	/* serial */
-#define	IPL_VM			3	/* i/o */
-#define	IPL_SCHED		4	/* clock */
-#define	IPL_HIGH		4	/* everything */
-
-#define	_IPL_NSOFT	4
-#define	_IPL_N		5
-
-/*
- * Hardware interrupt masks
- */
-extern u_int32_t __icu_mask[_IPL_N];
-
-#define splsoftclock()		splraise(__icu_mask[IPL_SOFTCLOCK])
-#define	splsoftbio()		splraise(__icu_mask[IPL_SOFTBIO])
-#define	splsoftnet()		splraise(__icu_mask[IPL_SOFTNET])
-#define	splsoftserial()		splraise(__icu_mask[IPL_SOFTSERIAL])
-#define	splvm()			splraise(__icu_mask[IPL_VM])
-#define	splsched()		splraise(__icu_mask[IPL_SCHED])
-#define	splx(s)			splset(s)
-
-void	spllowersofthigh(void);
-
-int splraise(int);
-void splset(int);
-void spl0(void);
+#include <mips/intr.h>
 
 /* R5900 EI/DI instruction */
 int _intr_suspend(void);

Index: src/sys/arch/playstation2/include/param.h
diff -u src/sys/arch/playstation2/include/param.h:1.8 src/sys/arch/playstation2/include/param.h:1.9
--- src/sys/arch/playstation2/include/param.h:1.8	Mon Mar 31 11:25:49 2014
+++ src/sys/arch/playstation2/include/param.h	Mon Mar 31 11:41:01 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.8 2014/03/31 11:25:49 martin Exp $	*/
+/*	$NetBSD: param.h,v 1.9 2014/03/31 11:41:01 martin Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -73,8 +73,6 @@
 
 #include <mips/mips_param.h>
 
-#define	_MACHINE_ARCH	mipsel
-#define	MACHINE_ARCH	"mipsel"
 #define	_MACHINE	playstation2
 #define	MACHINE		"playstation2"
 

Index: src/sys/arch/playstation2/include/vmparam.h
diff -u src/sys/arch/playstation2/include/vmparam.h:1.4 src/sys/arch/playstation2/include/vmparam.h:1.5
--- src/sys/arch/playstation2/include/vmparam.h:1.4	Mon Mar 31 11:25:49 2014
+++ src/sys/arch/playstation2/include/vmparam.h	Mon Mar 31 11:41:01 2014
@@ -1,6 +1,4 @@
-/*	$NetBSD: vmparam.h,v 1.4 2014/03/31 11:25:49 martin Exp $	*/
-
-#include <mips/vmparam.h>
+/*	$NetBSD: vmparam.h,v 1.5 2014/03/31 11:41:01 martin Exp $	*/
 
 /*
  * PlayStation 2 has one physical memory segment.
@@ -11,3 +9,6 @@
 
 #define	VM_NFREELIST		1
 #define	VM_FREELIST_DEFAULT	0
+
+#include <mips/vmparam.h>
+

Reply via email to