Skip to content

Commit

Permalink
- Added TestWorld project
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed Oct 22, 2023
1 parent a29fa3e commit 63741bb
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Source/Mosa.BareMetal.TestWorld.x86/Boot.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Kernel.BareMetal;
using Mosa.UnitTests.Optimization;

namespace Mosa.BareMetal.TestWorld.x86;

public static class Boot
{
public static void Main()
{
Debug.WriteLine("Boot::Main()");
Debug.WriteLine("MOSA x86 Kernel");

Division.DivisionBy7(254u);

Program.EntryPoint();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>

<Import Project="../Mosa.BareMetal.targets" />

<ItemGroup>
<ProjectReference Include="..\Mosa.BareMetal.TestWorld\Mosa.BareMetal.TestWorld.csproj" />
<ProjectReference Include="..\Mosa.Kernel.BareMetal.x86\Mosa.Kernel.BareMetal.x86.csproj" />
<ProjectReference Include="..\Mosa.UnitTests\Mosa.UnitTests.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../Mosa.BareMetal.targets" />

<ItemGroup>
<ProjectReference Include="..\Mosa.Kernel.BareMetal\Mosa.Kernel.BareMetal.csproj" />
</ItemGroup>

</Project>
31 changes: 31 additions & 0 deletions Source/Mosa.BareMetal.TestWorld/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using System;
using Mosa.DeviceSystem;
using Mosa.DeviceSystem.Service;
using Mosa.Kernel.BareMetal;
using Mosa.Runtime.Plug;

namespace Mosa.BareMetal.TestWorld;

public static class Program
{
[Plug("Mosa.Runtime.StartUp::BootOptions")]
public static void SetBootOptions()
{
BootSettings.EnableDebugOutput = true;
}

public static void EntryPoint()
{
Debug.WriteLine("Program::Main()");
Debug.WriteLine("##PASS##");

Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
Console.Clear();

for (; ; )
HAL.Yield();
}
}
42 changes: 42 additions & 0 deletions Source/Mosa.sln
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mosa.BareMetal.Starter.x86"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Starter", "Starter", "{4B46061F-49A8-4C15-8F68-FC97506CABA2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mosa.BareMetal.TestWorld", "Mosa.BareMetal.TestWorld\Mosa.BareMetal.TestWorld.csproj", "{3B66393E-1640-4156-8462-B6F695F1F3AE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mosa.BareMetal.TestWorld.x86", "Mosa.BareMetal.TestWorld.x86\Mosa.BareMetal.TestWorld.x86.csproj", "{E6A30C96-A0D2-43A3-8681-12067C094253}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -1324,6 +1328,42 @@ Global
{33E50A9F-D090-4ADB-B62E-F64B8C0EC3E8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{33E50A9F-D090-4ADB-B62E-F64B8C0EC3E8}.Release|x86.ActiveCfg = Release|Any CPU
{33E50A9F-D090-4ADB-B62E-F64B8C0EC3E8}.Release|x86.Build.0 = Release|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Debug|x86.ActiveCfg = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Debug|x86.Build.0 = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Description|Any CPU.ActiveCfg = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Description|Any CPU.Build.0 = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Description|Mixed Platforms.ActiveCfg = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Description|Mixed Platforms.Build.0 = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Description|x86.ActiveCfg = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Description|x86.Build.0 = Debug|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Release|Any CPU.Build.0 = Release|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Release|x86.ActiveCfg = Release|Any CPU
{3B66393E-1640-4156-8462-B6F695F1F3AE}.Release|x86.Build.0 = Release|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Debug|x86.ActiveCfg = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Debug|x86.Build.0 = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Description|Any CPU.ActiveCfg = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Description|Any CPU.Build.0 = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Description|Mixed Platforms.ActiveCfg = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Description|Mixed Platforms.Build.0 = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Description|x86.ActiveCfg = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Description|x86.Build.0 = Debug|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Release|Any CPU.Build.0 = Release|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Release|x86.ActiveCfg = Release|Any CPU
{E6A30C96-A0D2-43A3-8681-12067C094253}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1394,6 +1434,8 @@ Global
{0410B744-084D-4932-A462-355CA1B7112A} = {3A538FDC-0226-4971-A3C0-31570CDA340D}
{4FF48DB2-1F54-434E-9F70-48C74997A9AE} = {DDBC7F79-A2A1-4D92-9AE7-ADDC838F1E5E}
{33E50A9F-D090-4ADB-B62E-F64B8C0EC3E8} = {4B46061F-49A8-4C15-8F68-FC97506CABA2}
{3B66393E-1640-4156-8462-B6F695F1F3AE} = {3A538FDC-0226-4971-A3C0-31570CDA340D}
{E6A30C96-A0D2-43A3-8681-12067C094253} = {3A538FDC-0226-4971-A3C0-31570CDA340D}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C22A5C94-6B05-4B1B-845A-A2EA7615E093}
Expand Down

0 comments on commit 63741bb

Please sign in to comment.