diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-08 03:15:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-08 03:15:05 +0000 |
commit | 9e1167a9a3dd96368c1f4b15bd042b0010448619 (patch) | |
tree | af61fb95fb7437f293171c457ab0a5a6643c28b4 /sys/arch | |
parent | 759c3a1dac3cd6a6a9b89996b963b35b735664a3 (diff) |
correct ramdisk support
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/autoconf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/autoconf.c b/sys/arch/amd64/amd64/autoconf.c index 38a5d4bcc0d..c35e7a2a3da 100644 --- a/sys/arch/amd64/amd64/autoconf.c +++ b/sys/arch/amd64/amd64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.2 2004/02/03 12:09:47 mickey Exp $ */ +/* $OpenBSD: autoconf.c,v 1.3 2004/02/08 03:15:04 deraadt Exp $ */ /* $NetBSD: autoconf.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /*- @@ -101,6 +101,10 @@ struct device *booted_device; int booted_partition; dev_t bootdev; +#ifdef RAMDISK_HOOKS +static struct device fakerdrootdev = { DV_DISK, {}, NULL, 0, "rd0", NULL }; +#endif + /* * Determine i/o configuration for a machine. */ @@ -504,6 +508,7 @@ static struct nam2blk { } nam2blk[] = { { "wd", 0 }, /* 0 = wd */ { "sd", 4 }, /* 2 = sd */ + { "rd", 17 }, /* 17 = rd */ { "raid", 19 }, /* 19 = raid */ }; |