From 88d7a9a4253e61aa4a585d2887005d55425f23e1 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 30 Nov 1995 22:53:01 +0000 Subject: in actual fact MAXPARTITIONS is 16 and scsi disk is major 4 --- sys/arch/mvme68k/mvme68k/swapgeneric.c | 12 ++++++++++-- 1 file 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 #include +#include 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 } }; -- cgit v1.2.3