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(); + } } }