コード例 #1
0
ファイル: Setup.cs プロジェクト: mlintell/MOSA-Project
        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
ファイル: ResourceManager.cs プロジェクト: hj1980/Mosa
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceManager"/> class.
 /// </summary>
 public ResourceManager()
 {
     ioPortResources = new IOPortResources();
     memoryResources = new MemoryResources();
     interruptManager = new InterruptManager();
 }
コード例 #3
0
ファイル: ResourceManager.cs プロジェクト: djlw78/Mosa
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceManager"/> class.
 /// </summary>
 public ResourceManager()
 {
     ioPortResources  = new IOPortResources();
     memoryResources  = new MemoryResources();
     interruptManager = new InterruptManager();
 }