Exemplo n.º 1
0
        public static void Init()
        {
            Level1.Init();
            AreaInfo.HALinfo.WriteAreaPrefix("Hardware setup under way...");
            PCISetup();
            DetectHyperVisor();
            GraphicsHardwareSetup();

            /* These tests are only to be uncommented if testing
             *             on a pre-setup virtual machine or on real hardware */

            // Tests the floppy controller if a disk is inserted:
            //FDD_Test();

            // Tests the CD Drive if a disk is inserted:


            //ATAPI_Test();


            //AreaInfo.HALDevInfo.WriteDevicePrefix("COM", "Initializing serial communications stack...");
            //HAL.COM1 = new Drivers.SerialPort1();
            //HAL.COM2 = new Drivers.SerialPort2();
            //HAL.COM2.Initialize();
            //AreaInfo.HALDevInfo.WriteDevicePrefix("IDE", "Initializing IDE driver...");
            //AreaInfo.HALDevInfo.WriteDevicePrefix("AHCI", "Initializing AHCI driver...");
            //AreaInfo.HALDevInfo.WriteDevicePrefix("PS2", "Initializing PS2 controller...");
        }
Exemplo n.º 2
0
        protected override void LoadContent()
        {
            // level
            Level = new Level1();
            Level.Init();
            TTFactory.CreateScriptlet(Level);

            base.LoadContent();
        }