From: kstailey Date: Sat, 22 Feb 1997 21:09:13 +0000 (+0000) Subject: ramdisk now has raw version, disklabels X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d2852bdd022597a6fd49428be4712002016e332b;p=openbsd ramdisk now has raw version, disklabels --- diff --git a/etc/etc.sun3/MAKEDEV b/etc/etc.sun3/MAKEDEV index a6f0d29ad22..a58c0fbfae1 100644 --- a/etc/etc.sun3/MAKEDEV +++ b/etc/etc.sun3/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.12 1997/02/05 02:37:45 kstailey Exp $ +# $OpenBSD: MAKEDEV,v 1.13 1997/02/22 21:09:13 kstailey Exp $ # $NetBSD: MAKEDEV,v 1.8 1996/03/03 16:54:17 thorpej Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -159,13 +159,14 @@ pty*) done ;; -cd*|sd*|xy*|vnd*|ccd*) +cd*|sd*|xy*|vnd*|ccd*|rd*) case $arg in cd*) name=cd; blk=18; chr=58;; sd*) name=sd; blk=7; chr=17;; xy*) name=xy; blk=3; chr=9 ;; vnd*) name=vnd; blk=5; chr=19;; ccd*) name=ccd; blk=9; chr=33;; + rd*) name=rd; blk=13; chr=52;; esac case $unit in 0|1|2|3|4) offset=`expr $unit \* 8`;; diff --git a/sys/arch/sun3/include/conf.h b/sys/arch/sun3/include/conf.h index 82d02b439ae..ca4dbbf0f89 100644 --- a/sys/arch/sun3/include/conf.h +++ b/sys/arch/sun3/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.6 1997/02/04 23:25:04 kstailey Exp $ */ +/* $OpenBSD: conf.h,v 1.7 1997/02/22 21:09:16 kstailey Exp $ */ /*- * Copyright (c) 1996 Kenneth Stailey. All rights reserved. @@ -31,7 +31,7 @@ */ bdev_decl(rd); -/* no cdev for rd */ +cdev_decl(rd); /* swap device (required) */ bdev_decl(sw); diff --git a/sys/arch/sun3/sun3/conf.c b/sys/arch/sun3/sun3/conf.c index 402a7c31805..8b2c0c96cac 100644 --- a/sys/arch/sun3/sun3/conf.c +++ b/sys/arch/sun3/sun3/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.19 1997/02/04 23:25:03 kstailey Exp $ */ +/* $OpenBSD: conf.c,v 1.20 1997/02/22 21:09:15 kstailey Exp $ */ /* $NetBSD: conf.c,v 1.51 1996/11/04 16:16:09 gwr Exp $ */ /*- @@ -149,7 +149,7 @@ struct cdevsw cdevsw[] = cdev_notdef(), /* 49: (chat) */ cdev_notdef(), /* 50: (chut) */ cdev_notdef(), /* 51: (chut) */ - cdev_notdef(), /* 52: RAM disk - for install tape */ + cdev_disk_init(NRD,rd), /* 52: RAM disk - for install tape */ cdev_notdef(), /* 53: (hd - N/A) */ cdev_notdef(), /* 54: (fd - N/A) */ cdev_notdef(), /* 55: cgthree */