public static void Initialize(BaseHardwareAbstraction hardware, HAL.HandleInterrupt handleInterrupt) { // Set device driver system to the hardware HAL HAL.SetHardwareAbstraction(hardware); // Set the interrupt handler HAL.SetInterruptHandler(handleInterrupt); }
public static DeviceManager Initialize(PlatformArchitecture platform, BaseHardwareAbstraction hardware) { // Create Device Manager var deviceManager = new DeviceManager(platform); deviceManager.RegisterDaemon(new DiskDeviceMountDeamon()); // Set device driver system to the hardware HAL HAL.SetHardwareAbstraction(hardware); // Set the interrupt handler HAL.SetInterruptHandler(deviceManager.ProcessInterrupt); return(deviceManager); }