summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-30 22:53:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-30 22:53:01 +0000
commit88d7a9a4253e61aa4a585d2887005d55425f23e1 (patch)
tree7ea58d785b22a9b3568e1f0a8e670ab81a227217 /sys/arch/mvme68k
parentf8d30de5ce34d3aa427879c992855af75698f9c6 (diff)
in actual fact MAXPARTITIONS is 16 and scsi disk is major 4
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/mvme68k/swapgeneric.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/mvme68k/swapgeneric.c b/sys/arch/mvme68k/mvme68k/swapgeneric.c
index 18e5af831d3..8ad15fb6e9d 100644
--- a/sys/arch/mvme68k/mvme68k/swapgeneric.c
+++ b/sys/arch/mvme68k/mvme68k/swapgeneric.c
@@ -1,4 +1,4 @@
-/* $Id: swapgeneric.c,v 1.2 1995/11/07 08:50:25 deraadt Exp $ */
+/* $Id: swapgeneric.c,v 1.3 1995/11/30 22:53:00 deraadt Exp $ */
/*-
* Copyright (c) 1994
@@ -41,6 +41,7 @@
#include <sys/param.h>
#include <sys/conf.h>
+#include <machine/disklabel.h>
int (*mountroot)() = NULL; /* tells autoconf.c that we are "generic" */
@@ -48,6 +49,13 @@ dev_t rootdev = NODEV;
dev_t dumpdev = NODEV;
struct swdevt swdevt[] = {
- { makedev(7, 1), 0, 0 }, /* sd0b */
+ { makedev(4, 0*MAXPARTITIONS+1), 0, 0 }, /* sd0b */
+ { makedev(4, 1*MAXPARTITIONS+1), 0, 0 }, /* sd1b */
+ { makedev(4, 2*MAXPARTITIONS+1), 0, 0 }, /* sd2b */
+ { makedev(4, 3*MAXPARTITIONS+1), 0, 0 }, /* sd3b */
+ { makedev(4, 4*MAXPARTITIONS+1), 0, 0 }, /* sd4b */
+ { makedev(4, 5*MAXPARTITIONS+1), 0, 0 }, /* sd5b */
+ { makedev(4, 6*MAXPARTITIONS+1), 0, 0 }, /* sd6b */
+ { makedev(4, 7*MAXPARTITIONS+1), 0, 0 }, /* sd7b */
{ NODEV, 0, 0 }
};