Cosmos/source/Kernel-X86/00-CPU/Cosmos.CPU/Global.cs
2017-07-30 14:29:02 -04:00

31 lines
944 B
C#

using Cosmos.Core;
using Cosmos.Debug.Kernel;
namespace Cosmos.CPU {
public static class Global {
public static readonly Debugger mDebugger = new Debugger("Processor", "Global");
public static BaseIOGroups BaseIOGroups = new BaseIOGroups();
// These are used by Bootstrap.. but also called to signal end of interrupt etc...
// Need to chagne this.. I dont like how this is.. maybe isolate or split into to classes... one for boostrap one for
// later user
static public PIC PIC {
get {
return Bootstrap.PIC;
}
}
static public Processor Processor {
get {
return Bootstrap.Processor;
}
}
static public void Init() {
// See note in Bootstrap about these
// DONT transform the properties in fields, as then they remain null somehow.
}
}
}