summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-02-06 10:02:54 +0000
committerderaadt <deraadt@openbsd.org>1997-02-06 10:02:54 +0000
commit17371c2a0a31c91b203de695ea28f83bf91d6c43 (patch)
treea0817c466787c31ee75886b77f7b9c9441c0539d /sys
parentmake rd device. only make a & c partitions raw & block (diff)
downloadwireguard-openbsd-17371c2a0a31c91b203de695ea28f83bf91d6c43.tar.xz
wireguard-openbsd-17371c2a0a31c91b203de695ea28f83bf91d6c43.zip
cdev for rd
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/conf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index 758acdc6925..e5c32b07399 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.30 1996/11/23 21:45:48 kstailey Exp $ */
+/* $OpenBSD: conf.c,v 1.31 1997/02/06 10:02:54 deraadt Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -60,7 +60,7 @@ bdev_decl(scd);
#include "ccd.h"
#include "rd.h"
bdev_decl(rd);
-/* no cdev for rd */
+cdev_decl(rd);
struct bdevsw bdevsw[] =
{
@@ -237,6 +237,7 @@ struct cdevsw cdevsw[] =
cdev_gen_ipf(NIPF,ipl), /* 44 ip filtering */
cdev_random_init(1,random), /* 45 random data source */
cdev_uk_init(NPCTR,pctr), /* 46: pentium performance counters */
+ cdev_disk_init(NRD,rd), /* 47: ram disk driver */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@@ -325,7 +326,7 @@ static int chrtoblktbl[] = {
/* 44 */ NODEV,
/* 45 */ NODEV,
/* 46 */ NODEV,
- /* 47 */ NODEV,
+ /* 47 */ 17,
/* 48 */ NODEV,
/* 49 */ NODEV,
};