NFS Diskless booting support added.

This commit is contained in:
Martin Renters 1994-01-16 02:21:58 +00:00
parent 7f8cb36869
commit c6863af480
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=975
5 changed files with 32 additions and 7 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
* $Id: autoconf.c,v 1.5 1993/11/25 01:30:46 wollman Exp $
* $Id: autoconf.c,v 1.6 1993/12/19 00:49:57 wollman Exp $
*/
/*
@ -79,12 +79,14 @@ configure()
isa_configure();
#endif
#if GENERICxxx
#if GENERICxxx && !defined(DISKLESS)
if ((boothowto & RB_ASKNAME) == 0)
setroot();
setconf();
#else
#ifndef DISKLESS
setroot();
#endif
#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.11 1993/11/14 02:27:22 rgrimes Exp $
* $Id: locore.s,v 1.12 1994/01/14 16:23:33 davidg Exp $
*/
/*
@ -165,6 +165,13 @@ ENTRY(btext)
movl 16(%esp),%eax
addl $KERNBASE,%eax
movl %eax,_esym-KERNBASE
#ifdef DISKLESS /* Copy diskless structure */
movl _nfs_diskless_size-KERNBASE,%ecx
movl 20(%esp),%esi
movl $(_nfs_diskless-KERNBASE),%edi
rep
movsb
#endif
/* find out our CPU type. */
pushfl

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.11 1993/11/14 02:27:22 rgrimes Exp $
* $Id: locore.s,v 1.12 1994/01/14 16:23:33 davidg Exp $
*/
/*
@ -165,6 +165,13 @@ ENTRY(btext)
movl 16(%esp),%eax
addl $KERNBASE,%eax
movl %eax,_esym-KERNBASE
#ifdef DISKLESS /* Copy diskless structure */
movl _nfs_diskless_size-KERNBASE,%ecx
movl 20(%esp),%esi
movl $(_nfs_diskless-KERNBASE),%edi
rep
movsb
#endif
/* find out our CPU type. */
pushfl

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
* $Id: autoconf.c,v 1.5 1993/11/25 01:30:46 wollman Exp $
* $Id: autoconf.c,v 1.6 1993/12/19 00:49:57 wollman Exp $
*/
/*
@ -79,12 +79,14 @@ configure()
isa_configure();
#endif
#if GENERICxxx
#if GENERICxxx && !defined(DISKLESS)
if ((boothowto & RB_ASKNAME) == 0)
setroot();
setconf();
#else
#ifndef DISKLESS
setroot();
#endif
#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.11 1993/11/14 02:27:22 rgrimes Exp $
* $Id: locore.s,v 1.12 1994/01/14 16:23:33 davidg Exp $
*/
/*
@ -165,6 +165,13 @@ ENTRY(btext)
movl 16(%esp),%eax
addl $KERNBASE,%eax
movl %eax,_esym-KERNBASE
#ifdef DISKLESS /* Copy diskless structure */
movl _nfs_diskless_size-KERNBASE,%ecx
movl 20(%esp),%esi
movl $(_nfs_diskless-KERNBASE),%edi
rep
movsb
#endif
/* find out our CPU type. */
pushfl