mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 09:43:47 +00:00
Make userconfig two (default: on) options:
USERCONFIG to enable VISUAL_USERCONFIG to get the gui stuff too. Requested by: pst
This commit is contained in:
parent
078e82404e
commit
96fc6efbe3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18252
|
@ -35,7 +35,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.202 1996/09/06 23:07:03 phk Exp $
|
||||
* $Id: machdep.c,v 1.203 1996/09/10 23:06:58 bde Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
|
@ -44,6 +44,7 @@
|
|||
#include "opt_bounce.h"
|
||||
#include "opt_machdep.h"
|
||||
#include "opt_perfmon.h"
|
||||
#include "opt_userconfig.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -380,8 +381,12 @@ cpu_startup(dummy)
|
|||
callout[i-1].c_next = &callout[i];
|
||||
|
||||
if (boothowto & RB_CONFIG) {
|
||||
#ifdef USERCONFIG
|
||||
userconfig();
|
||||
cninit(); /* the preferred console may have changed */
|
||||
#else
|
||||
printf("Sorry! no userconfig in this kernel\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef BOUNCE_BUFFERS
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# device lines is present in the ./LINT configuration file. If you are
|
||||
# in doubt as to the purpose or necessity of a line, check first in LINT.
|
||||
#
|
||||
# $Id: GENERIC,v 1.74 1996/07/11 11:18:45 jkh Exp $
|
||||
# $Id: GENERIC,v 1.75 1996/08/27 16:25:53 wosch Exp $
|
||||
|
||||
machine "i386"
|
||||
cpu "I386_CPU"
|
||||
|
@ -33,6 +33,8 @@ options SCSI_DELAY=15 #Be pessimistic about Joe SCSI device
|
|||
options BOUNCE_BUFFERS #include support for DMA bounce buffers
|
||||
options UCONSOLE #Allow users to grab the console
|
||||
options FAILSAFE #Be conservative
|
||||
options USERCONFIG #boot -c editor
|
||||
options VISUAL_USERCONFIG #visual boot -c editor
|
||||
|
||||
config kernel root on wd0
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# LINT -- config file for checking all the sources, tries to pull in
|
||||
# as much of the source tree as it can.
|
||||
#
|
||||
# $Id: LINT,v 1.276 1996/09/06 23:35:45 pst Exp $
|
||||
# $Id: LINT,v 1.277 1996/09/10 21:38:45 bde Exp $
|
||||
#
|
||||
# NB: You probably don't want to try running a kernel built from this
|
||||
# file. Instead, you should start from GENERIC, and add options from
|
||||
|
@ -155,6 +155,9 @@ options PERFMON
|
|||
# Allow ordinary users to take the console - this is useful for X.
|
||||
options UCONSOLE
|
||||
|
||||
# XXX - this doesn't belong here either
|
||||
options USERCONFIG #boot -c editor
|
||||
options VISUAL_USERCONFIG #visual boot -c editor
|
||||
|
||||
#####################################################################
|
||||
# NETWORKING OPTIONS
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# This file tells config what files go into building a kernel,
|
||||
# files marked standard are always included.
|
||||
#
|
||||
# $Id: files.i386,v 1.138 1996/07/08 19:44:30 wollman Exp $
|
||||
# $Id: files.i386,v 1.139 1996/08/27 19:45:54 pst Exp $
|
||||
#
|
||||
aic7xxx_asm optional ahc device-driver \
|
||||
dependency "$S/dev/aic7xxx/aic7xxx_asm.c" \
|
||||
|
@ -58,7 +58,7 @@ i386/i386/support.s standard
|
|||
i386/i386/swtch.s standard
|
||||
i386/i386/sys_machdep.c standard
|
||||
i386/i386/trap.c standard
|
||||
i386/i386/userconfig.c standard
|
||||
i386/i386/userconfig.c optional userconfig
|
||||
i386/i386/vm_machdep.c standard
|
||||
i386/ibcs2/ibcs2_fcntl.c optional ibcs2
|
||||
i386/ibcs2/ibcs2_stat.c optional ibcs2
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: options.i386,v 1.16 1996/09/10 21:38:47 bde Exp $
|
||||
# $Id: options.i386,v 1.17 1996/09/10 23:07:04 bde Exp $
|
||||
BOUNCEPAGES opt_bounce.h
|
||||
USER_LDT
|
||||
MATH_EMULATE opt_math_emulate.h
|
||||
|
@ -34,3 +34,6 @@ XT_KEYBOARD opt_syscons.h
|
|||
|
||||
ATAPI opt_atapi.h
|
||||
ATAPI_STATIC opt_atapi.h
|
||||
|
||||
USERCONFIG opt_userconfig.h
|
||||
VISUAL_USERCONFIG opt_userconfig.h
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# device lines is present in the ./LINT configuration file. If you are
|
||||
# in doubt as to the purpose or necessity of a line, check first in LINT.
|
||||
#
|
||||
# $Id: GENERIC,v 1.74 1996/07/11 11:18:45 jkh Exp $
|
||||
# $Id: GENERIC,v 1.75 1996/08/27 16:25:53 wosch Exp $
|
||||
|
||||
machine "i386"
|
||||
cpu "I386_CPU"
|
||||
|
@ -33,6 +33,8 @@ options SCSI_DELAY=15 #Be pessimistic about Joe SCSI device
|
|||
options BOUNCE_BUFFERS #include support for DMA bounce buffers
|
||||
options UCONSOLE #Allow users to grab the console
|
||||
options FAILSAFE #Be conservative
|
||||
options USERCONFIG #boot -c editor
|
||||
options VISUAL_USERCONFIG #visual boot -c editor
|
||||
|
||||
config kernel root on wd0
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# LINT -- config file for checking all the sources, tries to pull in
|
||||
# as much of the source tree as it can.
|
||||
#
|
||||
# $Id: LINT,v 1.276 1996/09/06 23:35:45 pst Exp $
|
||||
# $Id: LINT,v 1.277 1996/09/10 21:38:45 bde Exp $
|
||||
#
|
||||
# NB: You probably don't want to try running a kernel built from this
|
||||
# file. Instead, you should start from GENERIC, and add options from
|
||||
|
@ -155,6 +155,9 @@ options PERFMON
|
|||
# Allow ordinary users to take the console - this is useful for X.
|
||||
options UCONSOLE
|
||||
|
||||
# XXX - this doesn't belong here either
|
||||
options USERCONFIG #boot -c editor
|
||||
options VISUAL_USERCONFIG #visual boot -c editor
|
||||
|
||||
#####################################################################
|
||||
# NETWORKING OPTIONS
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# LINT -- config file for checking all the sources, tries to pull in
|
||||
# as much of the source tree as it can.
|
||||
#
|
||||
# $Id: LINT,v 1.276 1996/09/06 23:35:45 pst Exp $
|
||||
# $Id: LINT,v 1.277 1996/09/10 21:38:45 bde Exp $
|
||||
#
|
||||
# NB: You probably don't want to try running a kernel built from this
|
||||
# file. Instead, you should start from GENERIC, and add options from
|
||||
|
@ -155,6 +155,9 @@ options PERFMON
|
|||
# Allow ordinary users to take the console - this is useful for X.
|
||||
options UCONSOLE
|
||||
|
||||
# XXX - this doesn't belong here either
|
||||
options USERCONFIG #boot -c editor
|
||||
options VISUAL_USERCONFIG #visual boot -c editor
|
||||
|
||||
#####################################################################
|
||||
# NETWORKING OPTIONS
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# This file tells config what files go into building a kernel,
|
||||
# files marked standard are always included.
|
||||
#
|
||||
# $Id: files.i386,v 1.138 1996/07/08 19:44:30 wollman Exp $
|
||||
# $Id: files.i386,v 1.139 1996/08/27 19:45:54 pst Exp $
|
||||
#
|
||||
aic7xxx_asm optional ahc device-driver \
|
||||
dependency "$S/dev/aic7xxx/aic7xxx_asm.c" \
|
||||
|
@ -58,7 +58,7 @@ i386/i386/support.s standard
|
|||
i386/i386/swtch.s standard
|
||||
i386/i386/sys_machdep.c standard
|
||||
i386/i386/trap.c standard
|
||||
i386/i386/userconfig.c standard
|
||||
i386/i386/userconfig.c optional userconfig
|
||||
i386/i386/vm_machdep.c standard
|
||||
i386/ibcs2/ibcs2_fcntl.c optional ibcs2
|
||||
i386/ibcs2/ibcs2_stat.c optional ibcs2
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: options.i386,v 1.16 1996/09/10 21:38:47 bde Exp $
|
||||
# $Id: options.i386,v 1.17 1996/09/10 23:07:04 bde Exp $
|
||||
BOUNCEPAGES opt_bounce.h
|
||||
USER_LDT
|
||||
MATH_EMULATE opt_math_emulate.h
|
||||
|
@ -34,3 +34,6 @@ XT_KEYBOARD opt_syscons.h
|
|||
|
||||
ATAPI opt_atapi.h
|
||||
ATAPI_STATIC opt_atapi.h
|
||||
|
||||
USERCONFIG opt_userconfig.h
|
||||
VISUAL_USERCONFIG opt_userconfig.h
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.202 1996/09/06 23:07:03 phk Exp $
|
||||
* $Id: machdep.c,v 1.203 1996/09/10 23:06:58 bde Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
|
@ -44,6 +44,7 @@
|
|||
#include "opt_bounce.h"
|
||||
#include "opt_machdep.h"
|
||||
#include "opt_perfmon.h"
|
||||
#include "opt_userconfig.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -380,8 +381,12 @@ cpu_startup(dummy)
|
|||
callout[i-1].c_next = &callout[i];
|
||||
|
||||
if (boothowto & RB_CONFIG) {
|
||||
#ifdef USERCONFIG
|
||||
userconfig();
|
||||
cninit(); /* the preferred console may have changed */
|
||||
#else
|
||||
printf("Sorry! no userconfig in this kernel\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef BOUNCE_BUFFERS
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
**
|
||||
** $Id: userconfig.c,v 1.42 1996/04/13 18:33:04 bde Exp $
|
||||
** $Id: userconfig.c,v 1.43 1996/08/10 22:06:09 joerg Exp $
|
||||
**/
|
||||
|
||||
/**
|
||||
|
@ -118,10 +118,14 @@
|
|||
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include <opt_userconfig.h>
|
||||
|
||||
static struct isa_device *isa_devlist; /* list read by dset to extract changes */
|
||||
|
||||
#ifdef VISUAL_USERCONFIG
|
||||
static struct isa_device *devtabs[] = { isa_devtab_bio, isa_devtab_tty, isa_devtab_net,
|
||||
isa_devtab_null, NULL };
|
||||
|
||||
static struct isa_device *isa_devlist; /* list read by dset to extract changes */
|
||||
|
||||
#define putchar(x) cnputc(x)
|
||||
#define getchar() cngetc()
|
||||
|
@ -2109,6 +2113,7 @@ visuserconfig(void)
|
|||
}
|
||||
}
|
||||
|
||||
#endif /* VISUAL_USERCONFIG */
|
||||
/*
|
||||
* Copyright (c) 1991 Regents of the University of California.
|
||||
* All rights reserved.
|
||||
|
@ -2151,7 +2156,7 @@ visuserconfig(void)
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: userconfig.c,v 1.42 1996/04/13 18:33:04 bde Exp $
|
||||
* $Id: userconfig.c,v 1.43 1996/08/10 22:06:09 joerg Exp $
|
||||
*/
|
||||
|
||||
#include "scbus.h"
|
||||
|
@ -2243,7 +2248,9 @@ static Cmd CmdList[] = {
|
|||
#if NSCBUS > 0
|
||||
{ "s", list_scsi, NULL }, /* scsi */
|
||||
#endif
|
||||
#ifdef VISUAL_USERCONFIG
|
||||
{ "v", (CmdFunc)visuserconfig, NULL }, /* visual mode */
|
||||
#endif
|
||||
{ NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue