forked from mosa/MOSA-Project
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
Source/Mosa.BareMetal.TestWorld.x86/Mosa.BareMetal.TestWorld.x86.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
9 changes: 9 additions & 0 deletions
9
Source/Mosa.BareMetal.TestWorld/Mosa.BareMetal.TestWorld.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters