Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern Make initial devsw a little more b...



details:   https://anonhg.NetBSD.org/src/rev/90809e41b9c1
branches:  trunk
changeset: 754336:90809e41b9c1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Apr 28 07:42:55 2010 +0000

description:
Make initial devsw a little more believable.  Especially adjust
max_sys_devsw, since it was previously a bit too much, given that
the correct value is 0.

diffstat:

 sys/rump/librump/rumpkern/emul.c |  17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diffs (41 lines):

diff -r 0ec7eba7901f -r 90809e41b9c1 sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c  Wed Apr 28 07:35:30 2010 +0000
+++ b/sys/rump/librump/rumpkern/emul.c  Wed Apr 28 07:42:55 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emul.c,v 1.132 2010/04/21 20:07:02 pooka Exp $ */
+/*     $NetBSD: emul.c,v 1.133 2010/04/28 07:42:55 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.132 2010/04/21 20:07:02 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.133 2010/04/28 07:42:55 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/null.h>
@@ -75,16 +75,15 @@
 int boothowto = AB_SILENT;
 struct tty *constty;
 
-#define DEVSW_SIZE 255
-const struct bdevsw *bdevsw0[DEVSW_SIZE]; /* XXX storage size */
+const struct bdevsw *bdevsw0[1];
 const struct bdevsw **bdevsw = bdevsw0;
-const int sys_cdevsws = DEVSW_SIZE;
-int max_cdevsws = DEVSW_SIZE;
+const int sys_cdevsws = 0;
+int max_cdevsws = 1;
 
-const struct cdevsw *cdevsw0[DEVSW_SIZE]; /* XXX storage size */
+const struct cdevsw *cdevsw0[1];
 const struct cdevsw **cdevsw = cdevsw0;
-const int sys_bdevsws = DEVSW_SIZE;
-int max_bdevsws = DEVSW_SIZE;
+const int sys_bdevsws = 0;
+int max_bdevsws = 1;
 
 struct devsw_conv devsw_conv0;
 struct devsw_conv *devsw_conv = &devsw_conv0;



Home | Main Index | Thread Index | Old Index