Subject: kern/4094: changes to sys/arch/i386/i386/conf.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael C. Richardson <mcr@sandelman.ottawa.on.ca>
List: netbsd-bugs
Date: 09/07/1997 20:13:50
>Number: 4094
>Category: kern
>Synopsis: conf.c will include specific portions into the cdevsw.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Sep 7 17:20:01 1997
>Last-Modified:
>Originator: Michael C. Richardson
>Organization:
Sandelman Software Works debugging department
>Release: 1.2G
>Environment:
System: NetBSD istari.sandelman.ottawa.on.ca 1.2D NetBSD 1.2D (SSW) #10: Wed Jun 11 00:01:01 EDT 1997 mcr@istari.sandelman.ottawa.on.ca:/j/netbsd/src/sys/arch/i386/compile/SSW i386
Architecture: i386
>Description:
One has to edit conf.c everytime it gets updated to include local,
custom drivers. Major numbers don't get allocated well for experimental
code.
>How-To-Repeat:
>Fix:
*** /usr/src/sys/arch/i386/i386/conf.c Thu Aug 28 10:34:56 1997
--- sys/arch/i386/i386/conf/conf.c Sun Sep 7 20:07:54 1997
***************
*** 189,194 ****
--- 189,198 ----
#include "satlink.h"
cdev_decl(satlink);
+ #ifdef CUSTOM_DRIVER_DEFS
+ #include "aux-conf.h"
+ #endif
+
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
***************
*** 241,246 ****
--- 245,272 ----
#endif
cdev_ipf_init(NIPFILTER,ipl), /* 44: ip-filter device */
cdev_satlink_init(NSATLINK,satlink), /* 45: planetconnect satlink */
+ cdev_notdef(), /* 46: reserved */
+ cdev_notdef(), /* 47: reserved */
+ cdev_notdef(), /* 48: reserved */
+ cdev_notdef(), /* 49: reserved */
+ cdev_notdef(), /* 50: reserved */
+ cdev_notdef(), /* 51: reserved */
+ cdev_notdef(), /* 52: reserved */
+ cdev_notdef(), /* 53: reserved */
+ cdev_notdef(), /* 54: reserved */
+ cdev_notdef(), /* 55: reserved */
+ cdev_notdef(), /* 56: reserved */
+ cdev_notdef(), /* 57: reserved */
+ cdev_notdef(), /* 58: reserved */
+ cdev_notdef(), /* 59: reserved */
+ cdev_notdef(), /* 60: reserved */
+ cdev_notdef(), /* 61: reserved */
+ cdev_notdef(), /* 62: reserved */
+ cdev_notdef(), /* 63: reserved */
+ cdev_notdef(), /* 64: reserved */
+ #ifdef CUSTOM_DRIVER_DEFS
+ #include "aux-conf.c"
+ #endif
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
>Audit-Trail:
>Unformatted: