From 7d37be2b44c0a9ced1c233d9711841deb2e080e0 Mon Sep 17 00:00:00 2001 From: Kudzu Date: Sun, 6 Aug 2017 18:21:01 -0400 Subject: [PATCH] g3 --- .../10-CPU/Cosmos.CPU.x86/{Temp.cs => Debug.cs} | 4 ++-- .../20-Platform/Cosmos.Platform.PC/Debug.cs | 11 +++++++++++ source/Kernel-X86/50-Application/Boot.cs | 2 +- .../Kernel-X86/50-Application/GuessKernelGen3.csproj | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) rename source/Kernel-X86/10-CPU/Cosmos.CPU.x86/{Temp.cs => Debug.cs} (84%) create mode 100644 source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Debug.cs diff --git a/source/Kernel-X86/10-CPU/Cosmos.CPU.x86/Temp.cs b/source/Kernel-X86/10-CPU/Cosmos.CPU.x86/Debug.cs similarity index 84% rename from source/Kernel-X86/10-CPU/Cosmos.CPU.x86/Temp.cs rename to source/Kernel-X86/10-CPU/Cosmos.CPU.x86/Debug.cs index ebf501243..e79b36263 100644 --- a/source/Kernel-X86/10-CPU/Cosmos.CPU.x86/Temp.cs +++ b/source/Kernel-X86/10-CPU/Cosmos.CPU.x86/Debug.cs @@ -1,8 +1,8 @@ using System; namespace Cosmos.CPU.x86 { - public static class Temp { - public static void ShowText() { + static public class Debug { + static public void ShowText() { unsafe { byte* xTest = (byte*)0xB8000; *xTest = 65; diff --git a/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Debug.cs b/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Debug.cs new file mode 100644 index 000000000..bdf77316e --- /dev/null +++ b/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Debug.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Cosmos.Platform.PC { + static public class Debug { + static public void ShowText() { + Cosmos.CPU.x86.Debug.ShowText(); + } + } +} diff --git a/source/Kernel-X86/50-Application/Boot.cs b/source/Kernel-X86/50-Application/Boot.cs index a8912eabc..dbedfe9dd 100644 --- a/source/Kernel-X86/50-Application/Boot.cs +++ b/source/Kernel-X86/50-Application/Boot.cs @@ -7,7 +7,7 @@ namespace KernelGen3 { protected override void Run() { Bootstrap.Init(); - Temp.ShowText(); + Cosmos.Platform.PC.Debug.ShowText(); while (true) { } diff --git a/source/Kernel-X86/50-Application/GuessKernelGen3.csproj b/source/Kernel-X86/50-Application/GuessKernelGen3.csproj index 63920e5c3..c6238eb16 100644 --- a/source/Kernel-X86/50-Application/GuessKernelGen3.csproj +++ b/source/Kernel-X86/50-Application/GuessKernelGen3.csproj @@ -10,7 +10,7 @@ - +