Module Name: src Committed By: pooka Date: Sat May 1 09:00:06 UTC 2010
Modified Files: src/sys/rump/librump/rumpkern: emul.c Log Message: Now that we have a big devsw_conv0, need at least as many entries in devsw as the highest device number in the conv table. Do a "good for a hundred years" guess now, fix properly later. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/sys/rump/librump/rumpkern/emul.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/rump/librump/rumpkern/emul.c diff -u src/sys/rump/librump/rumpkern/emul.c:1.134 src/sys/rump/librump/rumpkern/emul.c:1.135 --- src/sys/rump/librump/rumpkern/emul.c:1.134 Fri Apr 30 20:54:17 2010 +++ src/sys/rump/librump/rumpkern/emul.c Sat May 1 09:00:06 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: emul.c,v 1.134 2010/04/30 20:54:17 pooka Exp $ */ +/* $NetBSD: emul.c,v 1.135 2010/05/01 09:00:06 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.134 2010/04/30 20:54:17 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.135 2010/05/01 09:00:06 pooka Exp $"); #include <sys/param.h> #include <sys/null.h> @@ -75,15 +75,15 @@ int boothowto = AB_SILENT; struct tty *constty; -const struct bdevsw *bdevsw0[1]; +const struct bdevsw *bdevsw0[255]; const struct bdevsw **bdevsw = bdevsw0; -const int sys_cdevsws = 0; -int max_cdevsws = 1; +const int sys_cdevsws = 255; +int max_cdevsws = 255; -const struct cdevsw *cdevsw0[1]; +const struct cdevsw *cdevsw0[255]; const struct cdevsw **cdevsw = cdevsw0; -const int sys_bdevsws = 0; -int max_bdevsws = 1; +const int sys_bdevsws = 255; +int max_bdevsws = 255; int mem_no = 2;