mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
Modifying my user kernel to test VMT.
This commit is contained in:
parent
4731098001
commit
53d7432fa0
5 changed files with 148 additions and 148 deletions
|
|
@ -18,8 +18,8 @@
|
|||
<!-- Looks like this was a mispelled attribute. Replaced by DebugEnabled below.
|
||||
<DebugEnable>true</DebugEnable>
|
||||
-->
|
||||
<DebugEnabled>True</DebugEnabled>
|
||||
<DebugMode>Source</DebugMode>
|
||||
<DebugEnabled>False</DebugEnabled>
|
||||
<DebugMode>IL</DebugMode>
|
||||
<TraceMode>User</TraceMode>
|
||||
<EnableGDB>False</EnableGDB>
|
||||
<StartCosmosGDB>False</StartCosmosGDB>
|
||||
|
|
@ -35,9 +35,9 @@
|
|||
<VMware_Description>Use VMware Player or Workstation to deploy and debug.</VMware_Description>
|
||||
<VMware_Deployment>ISO</VMware_Deployment>
|
||||
<VMware_Launch>VMware</VMware_Launch>
|
||||
<VMware_DebugEnabled>True</VMware_DebugEnabled>
|
||||
<VMware_DebugEnabled>False</VMware_DebugEnabled>
|
||||
<VMware_StackCorruptionDetectionEnabled>True</VMware_StackCorruptionDetectionEnabled>
|
||||
<VMware_DebugMode>Source</VMware_DebugMode>
|
||||
<VMware_DebugMode>IL</VMware_DebugMode>
|
||||
<VMware_VisualStudioDebugPort>Pipe: Cosmos\Serial</VMware_VisualStudioDebugPort>
|
||||
<VMware_VMwareEdition>Workstation</VMware_VMwareEdition>
|
||||
<VMware_OutputPath>bin\Debug\</VMware_OutputPath>
|
||||
|
|
|
|||
|
|
@ -19,9 +19,6 @@ namespace SentinelKernel.System.Plugs.System.IO
|
|||
/// <returns></returns>
|
||||
public static string GetDirectoryName(string aPath)
|
||||
{
|
||||
return "";
|
||||
|
||||
/*
|
||||
if (aPath == null || aPath.Length <= 1)
|
||||
{
|
||||
return "/";
|
||||
|
|
@ -32,7 +29,6 @@ namespace SentinelKernel.System.Plugs.System.IO
|
|||
return aPath;
|
||||
}
|
||||
return aPath.Substring(0, xIndex);
|
||||
*/
|
||||
}
|
||||
|
||||
public static void Cctor(
|
||||
|
|
|
|||
|
|
@ -72,11 +72,11 @@ namespace Cosmos.HAL {
|
|||
|
||||
// Find hardcoded ATA controllers
|
||||
Global.Dbg.Send("ATA Master");
|
||||
InitAta(BlockDevice.Ata.ControllerIdEnum.Primary, BlockDevice.Ata.BusPositionEnum.Slave);
|
||||
|
||||
Global.Dbg.Send("ATA Slave");
|
||||
InitAta(BlockDevice.Ata.ControllerIdEnum.Primary, BlockDevice.Ata.BusPositionEnum.Master);
|
||||
|
||||
//Global.Dbg.Send("ATA Slave");
|
||||
//InitAta(BlockDevice.Ata.ControllerIdEnum.Primary, BlockDevice.Ata.BusPositionEnum.Slave);
|
||||
|
||||
//TODO Need to change code to detect if ATA controllers are present or not. How to do this? via PCI enum?
|
||||
// They do show up in PCI space as well as the fixed space.
|
||||
// Or is it always here, and was our compiler stack corruption issue?
|
||||
|
|
|
|||
|
|
@ -134,6 +134,10 @@ namespace Cosmos.IL2CPU {
|
|||
WriteNumber((uint)aType, 32);
|
||||
Console.Write(", MethodIndex = ");
|
||||
WriteNumber((uint)aMethodIndex, 32);
|
||||
Console.Write(", Result ");
|
||||
WriteNumber((uint)xResult, 32);
|
||||
Console.Write(", i ");
|
||||
WriteNumber((uint)i, 32);
|
||||
Console.WriteLine("");
|
||||
Console.WriteLine("Method found, but address invalid!");
|
||||
while(true) ;
|
||||
|
|
|
|||
Loading…
Reference in a new issue