1*ce099b40Smartin /* -*-C++-*- $NetBSD: mips_console.cpp,v 1.2 2008/04/28 20:23:20 martin Exp $ */
2bd926f64Such
3bd926f64Such /*-
4bd926f64Such * Copyright (c) 2001 The NetBSD Foundation, Inc.
5bd926f64Such * All rights reserved.
6bd926f64Such *
7bd926f64Such * This code is derived from software contributed to The NetBSD Foundation
8bd926f64Such * by UCHIYAMA Yasushi.
9bd926f64Such *
10bd926f64Such * Redistribution and use in source and binary forms, with or without
11bd926f64Such * modification, are permitted provided that the following conditions
12bd926f64Such * are met:
13bd926f64Such * 1. Redistributions of source code must retain the above copyright
14bd926f64Such * notice, this list of conditions and the following disclaimer.
15bd926f64Such * 2. Redistributions in binary form must reproduce the above copyright
16bd926f64Such * notice, this list of conditions and the following disclaimer in the
17bd926f64Such * documentation and/or other materials provided with the distribution.
18bd926f64Such *
19bd926f64Such * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20bd926f64Such * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21bd926f64Such * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22bd926f64Such * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23bd926f64Such * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24bd926f64Such * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25bd926f64Such * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26bd926f64Such * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27bd926f64Such * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28bd926f64Such * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29bd926f64Such * POSSIBILITY OF SUCH DAMAGE.
30bd926f64Such */
31bd926f64Such
32bd926f64Such #include <hpcmenu.h>
33bd926f64Such #include <mips/mips_console.h>
34bd926f64Such
35bd926f64Such MIPSConsole *MIPSConsole::_instance = 0;
36bd926f64Such
MIPSConsole()37bd926f64Such MIPSConsole::MIPSConsole()
38bd926f64Such {
39bd926f64Such /* NO-OP */
40bd926f64Such }
41bd926f64Such
~MIPSConsole()42bd926f64Such MIPSConsole::~MIPSConsole()
43bd926f64Such {
44bd926f64Such /* NO-OP */
45bd926f64Such }
46bd926f64Such
47bd926f64Such MIPSConsole *
Instance()48bd926f64Such MIPSConsole::Instance()
49bd926f64Such {
50bd926f64Such if (!_instance)
51bd926f64Such _instance = new MIPSConsole();
52bd926f64Such
53bd926f64Such return _instance;
54bd926f64Such }
55