Cosmos/source/Boot/Playgrounds/Kudzu/KudzuTest/Program.cs
kudzu_cp b160e54cd8 -Changed SetTextMode for VGA
-Changed boot mechanics
2008-08-05 21:43:06 +00:00

38 lines
1.1 KiB
C#

using System;
using Cosmos.Build.Windows;
using RTLDriver = Cosmos.Hardware.Network.Devices.RTL8139;
namespace KudzuTest {
class Program {
[STAThread]
static void Main(string[] args) {
// This is here to run it on Windows and see results when necessary
// Then can be run on Cosmos to see if values are the same
//RTL8139.CreateTestFrame();
BuildUI.Run();
}
public static void Init() {
var xBoot = new Cosmos.Sys.Boot();
xBoot.Execute();
//System.Diagnostics.Debugger.Break();
Console.WriteLine("Boot complete");
//PCITest.Test();
//Tests.DoAll();
RTL8139.Test();
//TODO: Make this automatically called after Init if no other shut downs are called
Cosmos.Sys.Deboot.Halt();
}
public static void DoLoop() {
int i = 0;
while (i < int.MaxValue) {
i++;
Console.WriteLine(i);
}
}
}
}