Autoconf is the one to realize that we are booted disk-less and start the

ball rolling.  locore is just moving some data from the boot-program.
This commit is contained in:
Poul-Henning Kamp 1994-10-22 17:51:46 +00:00
parent b4e5146fc5
commit 85adfe70ca
5 changed files with 39 additions and 11 deletions

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
* $Id: autoconf.c,v 1.13 1994/08/29 21:47:11 ache Exp $
* $Id: autoconf.c,v 1.14 1994/08/31 23:36:56 se Exp $
*/
/*
@ -84,14 +84,25 @@ configure()
pci_configure();
#endif
#if GENERICxxx && !defined(DISKLESS)
#if GENERICxxx
if ((boothowto & RB_ASKNAME) == 0)
setroot();
setconf();
#else
#ifndef DISKLESS
# ifdef NFS
{
extern int nfs_diskless_valid;
extern int (*mountroot) __P((void));
extern int nfs_mountroot(void);
if (nfs_diskless_valid)
mountroot = nfs_mountroot;
else
setroot();
}
# else /* !NFS */
setroot();
#endif
# endif /* NFS */
#endif
/*
* Configure swap area and related system

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.36 1994/10/10 01:10:21 phk Exp $
* $Id: locore.s,v 1.37 1994/10/20 00:07:47 phk Exp $
*/
/*
@ -263,6 +263,8 @@ NON_GPROF_ENTRY(btext)
cld
rep
movsb
lea _nfs_diskless_valid-KERNBASE,%edi
movl $1,(%edi)
#endif
/*

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.36 1994/10/10 01:10:21 phk Exp $
* $Id: locore.s,v 1.37 1994/10/20 00:07:47 phk Exp $
*/
/*
@ -263,6 +263,8 @@ NON_GPROF_ENTRY(btext)
cld
rep
movsb
lea _nfs_diskless_valid-KERNBASE,%edi
movl $1,(%edi)
#endif
/*

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
* $Id: autoconf.c,v 1.13 1994/08/29 21:47:11 ache Exp $
* $Id: autoconf.c,v 1.14 1994/08/31 23:36:56 se Exp $
*/
/*
@ -84,14 +84,25 @@ configure()
pci_configure();
#endif
#if GENERICxxx && !defined(DISKLESS)
#if GENERICxxx
if ((boothowto & RB_ASKNAME) == 0)
setroot();
setconf();
#else
#ifndef DISKLESS
# ifdef NFS
{
extern int nfs_diskless_valid;
extern int (*mountroot) __P((void));
extern int nfs_mountroot(void);
if (nfs_diskless_valid)
mountroot = nfs_mountroot;
else
setroot();
}
# else /* !NFS */
setroot();
#endif
# endif /* NFS */
#endif
/*
* Configure swap area and related system

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.36 1994/10/10 01:10:21 phk Exp $
* $Id: locore.s,v 1.37 1994/10/20 00:07:47 phk Exp $
*/
/*
@ -263,6 +263,8 @@ NON_GPROF_ENTRY(btext)
cld
rep
movsb
lea _nfs_diskless_valid-KERNBASE,%edi
movl $1,(%edi)
#endif
/*