Cosmos/source/Boot/Playgrounds/Kudzu/KudzuTest/Program.cs
sschocke_cp 7af62315ec RTL8139 Driver Changes
Update Global to call driver initialization routines for different drivers. Devices are enumerated during startup regardless of what hardware you are using.
Update FrodeTest workspace to run via new NetworkDevice interface
Update Builder.cs so that QEMU gets called with only either "-net tap" or "-net user", as these two options conflict
Internalized most of the TCP/IP stack leaving only the User needed classes available to use.
Commented most of TCP/IP stack public methods, and cleaned out code a little bit.
2009-03-31 20:33:22 +00:00

40 lines
1.2 KiB
C#

using System;
using Cosmos.Compiler.Builder;
using RTLDriver = Cosmos.Hardware.Network.Devices.RTL8139;
namespace Cosmos.Playground.Kudzu {
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();
Console.WriteLine("Boot complete");
//PCITest.Test();
//Tests.DoAll();
RTL8139.Test();
Debugger.Main();
Console.WriteLine("Done - Waiting");
Console.ReadLine();
//TODO: Make this automatically called after Init if no other shut downs are called
Cosmos.Sys.Deboot.ShutDown();
}
public static void DoLoop() {
int i = 0;
while (i < int.MaxValue) {
i++;
Console.WriteLine(i);
}
}
}
}