This commit is contained in:
mterwoord_cp 2008-01-01 14:29:35 +00:00
parent 41336096c5
commit 219d253444
7 changed files with 13 additions and 6 deletions

View file

@ -34,6 +34,7 @@ namespace Cosmos.Kernel {
Console.Write("Creating IDT...");
Hardware.CPU.CreateIDT();
Console.WriteLine("Done");
TestATA();
}
public static uint TickCount {

View file

@ -91,6 +91,7 @@ namespace Cosmos.Kernel {
xCurrentBlock->Next->State = MemoryBlockState.Free;
}
xCurrentBlock->State = MemoryBlockState.Used;
DebugUtil.SendMM_Alloc((uint)xCurrentBlock, aLength);
return ((uint)xCurrentBlock) + 5;
}

View file

@ -7,10 +7,11 @@ namespace Cosmos.Kernel {
private static Staging.DefaultStageQueue queue;
public static void Initialize() {
CPU.Init ();
CPU.Init ();
queue = new Cosmos.Kernel.Staging.DefaultStageQueue ();
queue.Run ();
//queue = new Cosmos.Kernel.Staging.DefaultStageQueue ();
//queue.Run ();
Console.WriteLine("Do Stages.Initialize now");
}
public static void Teardown() {

View file

@ -10,7 +10,7 @@ namespace Cosmos.Shell.Console {
System.Console.WriteLine ("Cosmos creation complete");
Kernel.Interrupts.DoTest ();
Kernel.Stages.Teardown ();
//Kernel.Stages.Teardown ();
}
}
}

View file

@ -6,7 +6,8 @@ using Mono.Cecil.Cil;
namespace Indy.IL2CPU.IL.X86.Win32 {
public class Call: X86.Call {
public Call(Instruction aInstruction, MethodInformation aMethodInfo): base(aInstruction, aMethodInfo) {
public Call(Instruction aInstruction, MethodInformation aMethodInfo)
: base(aInstruction, aMethodInfo) {
}
protected override void HandleDebuggerBreak() {

View file

@ -62,6 +62,9 @@ namespace Indy.IL2CPU.IL.X86 {
public Call(Instruction aInstruction, MethodInformation aMethodInfo)
: base(aInstruction, aMethodInfo) {
if (aInstruction.ToString() == "Callvirt !0[] System.Collections.Generic.List`1<System.String>::ToArray()") {
System.Diagnostics.Debugger.Break();
}
MethodReference xMethod = ((MethodReference)aInstruction.Operand);
Initialize(xMethod);
}

View file

@ -1,4 +1,4 @@
#define EXT_DEBUG
//#define EXT_DEBUG
using System;
using System.Linq;
using Indy.IL2CPU.Assembler;