CVS commit: src/sys/arch/playstation2/include

2014-07-04 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jul  4 07:59:17 UTC 2014

Modified Files:
src/sys/arch/playstation2/include: bus.h

Log Message:
Use .set arch=r5900 to enable r5900 specific instructions


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/playstation2/include/bus.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/bus.h
diff -u src/sys/arch/playstation2/include/bus.h:1.14 src/sys/arch/playstation2/include/bus.h:1.15
--- src/sys/arch/playstation2/include/bus.h:1.14	Mon Mar 31 11:25:49 2014
+++ src/sys/arch/playstation2/include/bus.h	Fri Jul  4 07:59:17 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: bus.h,v 1.14 2014/03/31 11:25:49 martin Exp $	*/
+/*	$NetBSD: bus.h,v 1.15 2014/07/04 07:59:17 martin Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -301,7 +301,7 @@ __write_8(bus_addr_t a, u_int64_t v)
 	__asm volatile(
 		.set noreorder;
 		.set push;
-		.set r5900;
+		.set arch = r5900;
 		pextlw	$8, %0, %1;
 		sd	$8, 0(%2);
 		sync.l;



CVS commit: src/sys/arch/playstation2/include

2014-04-01 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Apr  1 14:08:50 UTC 2014

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

Log Message:
Rearrange order of includes


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/playstation2/include/param.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/param.h
diff -u src/sys/arch/playstation2/include/param.h:1.9 src/sys/arch/playstation2/include/param.h:1.10
--- src/sys/arch/playstation2/include/param.h:1.9	Mon Mar 31 11:41:01 2014
+++ src/sys/arch/playstation2/include/param.h	Tue Apr  1 14:08:50 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.9 2014/03/31 11:41:01 martin Exp $	*/
+/*	$NetBSD: param.h,v 1.10 2014/04/01 14:08:50 martin Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -71,11 +71,11 @@
 #ifndef	_PLAYSTATION2_PARAM_H_
 #define	_PLAYSTATION2_PARAM_H_
 
-#include mips/mips_param.h
-
 #define	_MACHINE	playstation2
 #define	MACHINE		playstation2
 
+#include mips/mips_param.h
+
 #define	DEV_BSIZE	512
 #define	DEV_BSHIFT	9		/* log2(DEV_BSIZE) */
 #define BLKDEV_IOSIZE	2048



CVS commit: src/sys/arch/playstation2/include

2014-04-01 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Apr  1 14:09:15 UTC 2014

Modified Files:
src/sys/arch/playstation2/include: disklabel.h

Log Message:
Seems we use MBR labels


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/playstation2/include/disklabel.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/disklabel.h
diff -u src/sys/arch/playstation2/include/disklabel.h:1.9 src/sys/arch/playstation2/include/disklabel.h:1.10
--- src/sys/arch/playstation2/include/disklabel.h:1.9	Mon Mar 31 11:25:49 2014
+++ src/sys/arch/playstation2/include/disklabel.h	Tue Apr  1 14:09:14 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: disklabel.h,v 1.9 2014/03/31 11:25:49 martin Exp $	*/
+/*	$NetBSD: disklabel.h,v 1.10 2014/04/01 14:09:14 martin Exp $	*/
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -33,6 +33,7 @@
 #ifndef _PLAYSTATION2_DISKLABEL_H_
 #define	_PLAYSTATION2_DISKLABEL_H_
 
+#define LABELUSESMBR		1	/* use MBR partitionning */
 #define	LABELSECTOR	1		/* sector containing label */
 #define	LABELOFFSET	0		/* offset of label in sector */
 #define	MAXPARTITIONS	16		/* number of partitions */



CVS commit: src/sys/arch/playstation2/include

2014-03-31 Thread Martin Husemann
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
+