summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-06 10:02:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-06 10:02:55 +0000
commit9d740d77ff26bf16f43d66ba88a21ee0278dba34 (patch)
tree8c0c8ec756cfd1ae100a8d9413cceb3451f930ae
parent60bbd17ed1748d5877f33a7bc472da2ec879acff (diff)
cdev for rd
-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,
};