示例#1
0
        public static void Initialize(BaseHardwareAbstraction hardware)
        {
            // Create Device Manager
            DeviceManager = new DeviceManager();

            // Create Interrupt Manager
            InterruptManager = new InterruptManager();

            // Create the Device Driver Manager
            DeviceDriverRegistry = new DeviceDriverRegistry(PlatformArchitecture.X86);

            // Create the PCI Controller Manager
            PCIControllerManager = new PCIControllerManager(DeviceManager);

            // Set device driver system to the hardware HAL
            HAL.SetHardwareAbstraction(hardware);

            // Set the interrupt handler
            HAL.SetInterruptHandler(InterruptManager.ProcessInterrupt);
        }
示例#2
0
 /// <summary>
 /// Sets the hardware abstraction.
 /// </summary>
 /// <param name="hardwareAbstraction">The hardware abstraction.</param>
 public static void SetHardwareAbstraction(BaseHardwareAbstraction hardwareAbstraction)
 {
     HAL.hardwareAbstraction = hardwareAbstraction;
 }