Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }