Cosmos/source/Cosmos.System/Global.cs
Matthijs ter Woord 9b78ed1903 Extra changes.
2015-05-24 16:43:04 +02:00

26 lines
786 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cosmos.HAL;
namespace Cosmos.System {
static public class Global {
static readonly public Cosmos.Debug.Kernel.Debugger Dbg = new Cosmos.Debug.Kernel.Debugger("System", "");
static public Console Console = new Console(null);
static public void Init(TextScreenBase textScreen, Keyboard keyboard){
// We must init Console before calling Inits. This is part of the
// "minimal" boot to allow output
Global.Dbg.Send("Creating Console");
if (textScreen != null)
{
Console = new Console(textScreen);
}
Global.Dbg.Send("HW Init");
Cosmos.HAL.Global.Init(textScreen, keyboard);
//Network.NetworkStack.Init();
}
}
}