Allow to pass -d option to kernel.

This commit is contained in:
enami 2001-05-17 01:50:35 +00:00
parent 93819542b3
commit c7a624dcc6
5 changed files with 16 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* -*-C++-*- $NetBSD: hpcmenu.cpp,v 1.7 2001/05/08 18:51:22 uch Exp $ */
/* -*-C++-*- $NetBSD: hpcmenu.cpp,v 1.8 2001/05/17 01:50:35 enami Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -128,6 +128,7 @@ HpcMenuInterface::_set_default_pref()
_pref.boot_verbose = FALSE;
_pref.boot_single_user = FALSE;
_pref.boot_ask_for_name = FALSE;
_pref.boot_debugger = FALSE;
_pref.auto_boot = 0;
_pref.reverse_video = FALSE;
_pref.pause_before_boot = TRUE;
@ -232,6 +233,8 @@ __END_MACRO
SETOPT('s');
if (_pref.boot_ask_for_name) // ask for file name to boot from
SETOPT('a');
if (_pref.boot_debugger) // break into the kernel debugger
SETOPT('d');
// boot from
switch(_pref.rootfs) {

View File

@ -1,4 +1,4 @@
/* -*-C++-*- $NetBSD: hpcmenu.h,v 1.6 2001/05/08 18:51:22 uch Exp $ */
/* -*-C++-*- $NetBSD: hpcmenu.h,v 1.7 2001/05/17 01:50:35 enami Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -109,6 +109,7 @@ public:
BOOL boot_verbose;
BOOL boot_single_user;
BOOL boot_ask_for_name;
BOOL boot_debugger;
// boot loader options.
int auto_boot;
BOOL reverse_video;

View File

@ -1,4 +1,4 @@
/* -*-C++-*- $NetBSD: menu.cpp,v 1.2 2001/05/08 18:51:24 uch Exp $ */
/* -*-C++-*- $NetBSD: menu.cpp,v 1.3 2001/05/17 01:50:36 enami Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -127,6 +127,7 @@ MainTabWindow::init(HWND w)
// kernel boot options.
_set_check(IDC_MAIN_OPTION_A, pref.boot_ask_for_name);
_set_check(IDC_MAIN_OPTION_D, pref.boot_debugger);
_set_check(IDC_MAIN_OPTION_S, pref.boot_single_user);
_set_check(IDC_MAIN_OPTION_V, pref.boot_verbose);
_set_check(IDC_MAIN_OPTION_H, pref.boot_serial);
@ -171,6 +172,7 @@ MainTabWindow::get()
pref.rootfs = 3;
pref.boot_ask_for_name = _is_checked(IDC_MAIN_OPTION_A);
pref.boot_debugger = _is_checked(IDC_MAIN_OPTION_D);
pref.boot_verbose = _is_checked(IDC_MAIN_OPTION_V);
pref.boot_single_user = _is_checked(IDC_MAIN_OPTION_S);
pref.boot_serial = _is_checked(IDC_MAIN_OPTION_H);

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpcmenu.rc,v 1.3 2001/03/25 17:13:15 uch Exp $ */
/* $NetBSD: hpcmenu.rc,v 1.4 2001/05/17 01:50:36 enami Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -97,9 +97,11 @@ STYLE WS_CHILD
5, 63, 120, 9
AUTOCHECKBOX "ask for file name to boot from" IDC_MAIN_OPTION_A
5, 72, 120, 9
AUTOCHECKBOX "break into kernel debugger" IDC_MAIN_OPTION_D
5, 81, 120, 9
AUTOCHECKBOX "serial console", IDC_MAIN_OPTION_H,
5, 81, 55, 9
COMBOBOX IDC_MAIN_OPTION_H_SPEED 65, 79, 50, 40,
5, 90, 55, 9
COMBOBOX IDC_MAIN_OPTION_H_SPEED 65, 88, 50, 40,
WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP |
CBS_DROPDOWN | CBS_AUTOHSCROLL
}

View File

@ -1,4 +1,4 @@
/* -*-C++-*- $NetBSD: resource.h,v 1.3 2001/03/25 17:13:15 uch Exp $ */
/* -*-C++-*- $NetBSD: resource.h,v 1.4 2001/05/17 01:50:36 enami Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -76,6 +76,7 @@
#define IDC_MAIN_OPTION_V 152
#define IDC_MAIN_OPTION_H 153
#define IDC_MAIN_OPTION_H_SPEED 154
#define IDC_MAIN_OPTION_D 155
#define IDC_MAIN_DIR 1001
#define IDC_MAIN_PLATFORM 1002