allow boot from cdrom. from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
This commit is contained in:
parent
3e80dca508
commit
77c35a2e3b
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: swapgeneric.c,v 1.18 1994/12/28 09:12:39 chopps Exp $ */
|
/* $NetBSD: swapgeneric.c,v 1.19 1995/04/19 13:02:57 chopps Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1982, 1986 Regents of the University of California.
|
* Copyright (c) 1982, 1986 Regents of the University of California.
|
||||||
|
@ -50,9 +50,9 @@
|
||||||
#include "sd.h"
|
#include "sd.h"
|
||||||
#include "cd.h"
|
#include "cd.h"
|
||||||
|
|
||||||
/*
|
#if NCD > 0
|
||||||
* Only boot on ufs. (XXX?)
|
int cd9660_mountroot();
|
||||||
*/
|
#endif
|
||||||
int ffs_mountroot();
|
int ffs_mountroot();
|
||||||
int (*mountroot)() = ffs_mountroot;
|
int (*mountroot)() = ffs_mountroot;
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ struct genericconf genericconf[] = {
|
||||||
{&sdcd, makedev(4, 0)},
|
{&sdcd, makedev(4, 0)},
|
||||||
#endif
|
#endif
|
||||||
#if NCD > 0
|
#if NCD > 0
|
||||||
{&cdcd, makedev(6, 0)},
|
{&cdcd, makedev(7, 0)},
|
||||||
#endif
|
#endif
|
||||||
{ 0 },
|
{ 0 },
|
||||||
};
|
};
|
||||||
|
@ -192,6 +192,10 @@ found:
|
||||||
|
|
||||||
gc->gc_root = MAKEDISKDEV(major(gc->gc_root), unit, 0);
|
gc->gc_root = MAKEDISKDEV(major(gc->gc_root), unit, 0);
|
||||||
rootdev = gc->gc_root;
|
rootdev = gc->gc_root;
|
||||||
|
#if NCD > 0
|
||||||
|
if (major(rootdev) == 7)
|
||||||
|
mountroot = cd9660_mountroot;
|
||||||
|
#endif
|
||||||
|
|
||||||
justdoswap:
|
justdoswap:
|
||||||
swdevt[0].sw_dev = dumpdev = MAKEDISKDEV(major(rootdev),
|
swdevt[0].sw_dev = dumpdev = MAKEDISKDEV(major(rootdev),
|
||||||
|
|
Loading…
Reference in New Issue