summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2002-04-21 23:35:52 +0000
committermiod <miod@openbsd.org>2002-04-21 23:35:52 +0000
commit837793e5cb7f7ae1a794c1812e374b43a3dfb00b (patch)
tree40bed0251f30c4e9c1b2dc3764e3d164029f2be1
parentChange disklabel policy, and allow writing disklabel to any media that does (diff)
downloadwireguard-openbsd-837793e5cb7f7ae1a794c1812e374b43a3dfb00b.tar.xz
wireguard-openbsd-837793e5cb7f7ae1a794c1812e374b43a3dfb00b.zip
Add ramdisk support.
-rw-r--r--sys/arch/mac68k/mac68k/autoconf.c5
-rw-r--r--sys/arch/mac68k/mac68k/conf.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/mac68k/mac68k/autoconf.c b/sys/arch/mac68k/mac68k/autoconf.c
index eee8aba8224..0680e6db680 100644
--- a/sys/arch/mac68k/mac68k/autoconf.c
+++ b/sys/arch/mac68k/mac68k/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.15 2002/03/14 01:26:35 millert Exp $ */
+/* $OpenBSD: autoconf.c,v 1.16 2002/04/21 23:35:52 miod Exp $ */
/* $NetBSD: autoconf.c,v 1.38 1996/12/18 05:46:09 scottr Exp $ */
/*
@@ -137,6 +137,7 @@ struct nam2blk {
} nam2blk[] = {
{ "sd", 4 },
{ "cd", 6 },
+ { "rd", 13 },
};
static int
@@ -165,7 +166,7 @@ getdisk(str, len, defpart, devp)
for (dv = alldevs.tqh_first; dv != NULL;
dv = dv->dv_list.tqe_next) {
if (dv->dv_class == DV_DISK)
- printf(" %s[a-h]", dv->dv_xname);
+ printf(" %s[a-p]", dv->dv_xname);
#ifdef NFSCLIENT
if (dv->dv_class == DV_IFNET)
printf(" %s", dv->dv_xname);
diff --git a/sys/arch/mac68k/mac68k/conf.c b/sys/arch/mac68k/mac68k/conf.c
index 25c71cb0b88..eef0ca21468 100644
--- a/sys/arch/mac68k/mac68k/conf.c
+++ b/sys/arch/mac68k/mac68k/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.27 2001/12/11 23:19:02 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.28 2002/04/21 23:35:52 miod Exp $ */
/* $NetBSD: conf.c,v 1.41 1997/02/11 07:35:49 scottr Exp $ */
/*
@@ -133,7 +133,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(NCD,cd), /* 15: SCSI CD-ROM */
cdev_notdef(), /* 16 */
cdev_ch_init(NCH,ch), /* 17: SCSI autochanger */
- cdev_notdef(), /* 18 */
+ cdev_disk_init(NRD,rd), /* 18: ramdisk device */
cdev_disk_init(NVND,vnd), /* 19: vnode disk driver */
cdev_disk_init(NCCD,ccd), /* 20: concatenated disk driver */
cdev_fd_init(1,filedesc), /* 21: file descriptor pseudo-device */
@@ -237,7 +237,7 @@ static int chrtoblktab[] = {
/* 15 */ 6,
/* 16 */ NODEV,
/* 17 */ NODEV,
- /* 18 */ NODEV,
+ /* 18 */ 13,
/* 19 */ 8,
/* 20 */ 9,
};