Recognise md as a valid root device. And since md disks don't get

device_register()'d, don't go looking on our device list for them.
Ramdisk kernel now boot.
This commit is contained in:
gmcgarry 2002-02-23 21:52:25 +00:00
parent 42abedb038
commit 5382848ec7
2 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files.hp300,v 1.54 2002/01/21 21:57:03 jdolecek Exp $
# $NetBSD: files.hp300,v 1.55 2002/02/23 21:52:25 gmcgarry Exp $
#
# hp300-specific configuration info
@ -185,6 +185,10 @@ file arch/hp300/dev/ac.c ac needs-flag
# RAIDframe
major {raid = 15}
# Memory Disk for ramdisk
file dev/md_root.c memory_disk_hooks
major {md = 14}
#
# Non-device files
#
@ -209,7 +213,6 @@ file arch/hp300/hp300/trap.c
file arch/hp300/hp300/vm_machdep.c
file arch/hp300/hp300/disksubr.c
file arch/hp300/dev/dma.c
file dev/md_root.c memory_disk_hooks
file dev/clock_subr.c
file dev/cons.c

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.53 2001/12/14 08:29:24 gmcgarry Exp $ */
/* $NetBSD: autoconf.c,v 1.54 2002/02/23 21:52:26 gmcgarry Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -647,8 +647,6 @@ setbootdev()
*/
bootdev = 0;
dd = dev_data_lookup(root_device);
/*
* If the root device is network, we're done
* early.
@ -665,11 +663,15 @@ setbootdev()
type = 2;
else if (memcmp(root_device->dv_xname, "sd", 2) == 0)
type = 4;
else if (memcmp(root_device->dv_xname, "md", 2) == 0)
goto out;
else {
printf("WARNING: strange root device!\n");
goto out;
}
dd = dev_data_lookup(root_device);
/*
* Get parent's info.
*/