mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Remove the unused major/minor numbers from iodev and memdev.
Now that st_rdev is being automatically generated by the kernel, there is no need to define static major/minor numbers for the iodev and memdev. We still need the minor numbers for the memdev, however, to distinguish between /dev/mem and /dev/kmem. Approved by: philip (mentor)
This commit is contained in:
parent
172b9da045
commit
721351876c
@ -26,8 +26,5 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_IO 14
|
||||
|
||||
d_open_t ioopen;
|
||||
d_close_t ioclose;
|
||||
|
@ -26,7 +26,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_MEM 0
|
||||
#define CDEV_MINOR_KMEM 1
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_MEM 0
|
||||
#define CDEV_MINOR_KMEM 1
|
||||
|
||||
|
@ -66,7 +66,7 @@ io_modevent(module_t mod __unused, int type, void *data __unused)
|
||||
case MOD_LOAD:
|
||||
if (bootverbose)
|
||||
printf("io: <I/O>\n");
|
||||
iodev = make_dev(&io_cdevsw, CDEV_MINOR_IO,
|
||||
iodev = make_dev(&io_cdevsw, 0,
|
||||
UID_ROOT, GID_WHEEL, 0600, "io");
|
||||
break;
|
||||
|
||||
|
@ -26,8 +26,5 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_IO 14
|
||||
|
||||
d_open_t ioopen;
|
||||
d_close_t ioclose;
|
||||
|
@ -26,7 +26,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_MEM 0
|
||||
#define CDEV_MINOR_KMEM 1
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_MEM 0
|
||||
#define CDEV_MINOR_KMEM 1
|
||||
|
||||
|
@ -26,8 +26,5 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_IO 14
|
||||
|
||||
d_open_t ioopen;
|
||||
d_close_t ioclose;
|
||||
|
@ -27,7 +27,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_MEM 0
|
||||
#define CDEV_MINOR_KMEM 1
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_MEM 0
|
||||
#define CDEV_MINOR_KMEM 1
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_MEM 0
|
||||
#define CDEV_MINOR_KMEM 1
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define CDEV_MINOR_MEM 0
|
||||
#define CDEV_MINOR_KMEM 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user