From e59178006f739616657b8315573cc437ec00fb13 Mon Sep 17 00:00:00 2001 From: Kudzu Date: Mon, 7 Aug 2017 17:08:33 -0400 Subject: [PATCH] g3 --- source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Boot.cs | 6 +----- .../Kernel-X86/20-Platform/Cosmos.Platform.PC/DeviceMgr.cs | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Boot.cs b/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Boot.cs index 273da94d7..2de8dcb18 100644 --- a/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Boot.cs +++ b/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/Boot.cs @@ -8,11 +8,7 @@ namespace Cosmos.Platform.PC { static public class Boot { [BootEntry(20)] static private void Init() { - var xMgr = new DeviceMgr(); - HAL.Globals.DeviceMgr = xMgr; - - var xProcessor = new Devices.Processor(); - + HAL.Globals.DeviceMgr = new DeviceMgr(); } } } diff --git a/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/DeviceMgr.cs b/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/DeviceMgr.cs index e4d5b9716..1738241ba 100644 --- a/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/DeviceMgr.cs +++ b/source/Kernel-X86/20-Platform/Cosmos.Platform.PC/DeviceMgr.cs @@ -4,5 +4,8 @@ using System.Text; namespace Cosmos.Platform.PC { public class DeviceMgr : HAL.DeviceMgr { + public DeviceMgr() { + var xProcessor = new Devices.Processor(); + } } }