From 4ad26273c299d55b395dc4b7771f83363eb4dea2 Mon Sep 17 00:00:00 2001 From: soda Date: Tue, 22 Feb 2000 11:40:20 +0000 Subject: [PATCH] rd -> md --- sys/arch/arc/dev/{rd_root.c => md_root.c} | 30 +++++++++++++---------- 1 file changed, 17 insertions(+), 13 deletions(-) rename sys/arch/arc/dev/{rd_root.c => md_root.c} (77%) diff --git a/sys/arch/arc/dev/rd_root.c b/sys/arch/arc/dev/md_root.c similarity index 77% rename from sys/arch/arc/dev/rd_root.c rename to sys/arch/arc/dev/md_root.c index d946d5e8607a..adbe0ae14987 100644 --- a/sys/arch/arc/dev/rd_root.c +++ b/sys/arch/arc/dev/md_root.c @@ -1,4 +1,5 @@ -/* $NetBSD: rd_root.c,v 1.2 2000/01/23 21:01:54 soda Exp $ */ +/* $NetBSD: md_root.c,v 1.1 2000/02/22 11:40:20 soda Exp $ */ +/* NetBSD: md_root.c,v 1.11 1999/03/17 18:59:22 sommerfe Exp */ /* * Copyright (c) 1995 Gordon W. Ross @@ -31,7 +32,9 @@ #include #include -#include +#include + +#include "opt_mdsize.h" extern int boothowto; @@ -43,25 +46,26 @@ extern int boothowto; /* * This array will be patched to contain a file-system image. - * See the program: src/distrib/sun3/common/rdsetroot.c + * See the program mdsetimage(8) for details. */ -int rd_root_size = ROOTBYTES; -char rd_root_image[ROOTBYTES] = "|This is the root ramdisk!\n"; +u_int32_t md_root_size = ROOTBYTES; +char md_root_image[ROOTBYTES] = "|This is the root ramdisk!\n"; /* * This is called during autoconfig. */ void -rd_attach_hook(unit, rd) +md_attach_hook(unit, md) int unit; - struct rd_conf *rd; + struct md_conf *md; { if (unit == 0) { /* Setup root ramdisk */ - rd->rd_addr = (caddr_t) rd_root_image; - rd->rd_size = (size_t) rd_root_size; - rd->rd_type = RD_KMEM_FIXED; - printf("rd%d: fixed, %d blocks\n", unit, MINIROOTSIZE); + md->md_addr = (caddr_t)md_root_image; + md->md_size = (size_t)md_root_size; + md->md_type = MD_KMEM_FIXED; + printf("md%d: internal %dK image area\n", unit, + ROOTBYTES / 1024); } } @@ -69,9 +73,9 @@ rd_attach_hook(unit, rd) * This is called during open (i.e. mountroot) */ void -rd_open_hook(unit, rd) +md_open_hook(unit, md) int unit; - struct rd_conf *rd; + struct md_conf *md; { if (unit == 0) { /* The root ramdisk only works single-user. */