set user specified console as default.
This commit is contained in:
parent
00539717e3
commit
643a469d36
|
@ -1,7 +1,7 @@
|
||||||
/* $NetBSD: boot.cpp,v 1.4 2004/08/06 18:33:09 uch Exp $ */
|
/* $NetBSD: boot.cpp,v 1.5 2004/08/13 15:48:21 uch Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* This code is derived from software contributed to The NetBSD Foundation
|
* This code is derived from software contributed to The NetBSD Foundation
|
||||||
|
@ -151,6 +151,10 @@ Boot::~Boot()
|
||||||
BOOL
|
BOOL
|
||||||
Boot::create()
|
Boot::create()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Set this console (setuped by machine dependent part) as default.
|
||||||
|
Console::changeConsole(*_cons);
|
||||||
|
|
||||||
// File manager.
|
// File manager.
|
||||||
_file = new FileManager(_cons, args.file);
|
_file = new FileManager(_cons, args.file);
|
||||||
_file->setDebug() = args.fileDebug;
|
_file->setDebug() = args.fileDebug;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* -*-C++-*- $NetBSD: console.h,v 1.9 2004/08/06 18:33:09 uch Exp $ */
|
/* -*-C++-*- $NetBSD: console.h,v 1.10 2004/08/13 15:48:21 uch Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* This code is derived from software contributed to The NetBSD Foundation
|
* This code is derived from software contributed to The NetBSD Foundation
|
||||||
|
@ -63,6 +63,7 @@ public:
|
||||||
virtual BOOL init(void) { return TRUE; }
|
virtual BOOL init(void) { return TRUE; }
|
||||||
BOOL &on(void) { return _on; }
|
BOOL &on(void) { return _on; }
|
||||||
|
|
||||||
|
static void changeConsole(Console &console) { _instance = &console; }
|
||||||
void setBootConsole(u_int16_t cnuse) { _boot_console = cnuse; }
|
void setBootConsole(u_int16_t cnuse) { _boot_console = cnuse; }
|
||||||
int16_t getBootConsole(void) const { return _boot_console; }
|
int16_t getBootConsole(void) const { return _boot_console; }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue