Navigation Menu

Skip to content

Commit

Permalink
- Working on device driver system
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed Oct 19, 2017
1 parent a2e670a commit 8599bd7
Show file tree
Hide file tree
Showing 26 changed files with 450 additions and 1,780 deletions.
2 changes: 1 addition & 1 deletion Launcher.bat
@@ -1 +1 @@
start bin\Mosa.Tool.Launcher.exe -qemu bin\Mosa.HelloWorld.x86.exe
start bin\Mosa.Tool.Launcher.exe --qemu bin\Mosa.HelloWorld.x86.exe
13 changes: 8 additions & 5 deletions Source/Mosa.DeviceDriver/ISA/CMOSX.cs
Expand Up @@ -8,7 +8,7 @@ namespace Mosa.DeviceDriver.ISA
/// CMOS Device Driver
/// </summary>
//[ISADeviceDriver(AutoLoad = true, BasePort = 0x0070, PortRange = 2, Platforms = PlatformArchitecture.X86)]
public class CMOSX : HardwareDeviceX
public class CMOSX : DeviceDriverX
{
/// <summary>
/// The command port
Expand All @@ -25,6 +25,9 @@ public class CMOSX : HardwareDeviceX
/// </summary>
protected SpinLock spinLock;

/// <summary>
/// Initializes this device.
/// </summary>
protected override void Initialize()
{
Device.Name = "CMOS";
Expand All @@ -37,10 +40,10 @@ protected override void Initialize()

public override void Start()
{
if (Device.Status == DeviceStatus.Available)
{
Device.Status = DeviceStatus.Online;
}
if (Device.Status != DeviceStatus.Available)
return;

Device.Status = DeviceStatus.Online;
}

/// <summary>
Expand Down

0 comments on commit 8599bd7

Please sign in to comment.