示例#1
0
        /// <summary>
        /// System ring init method - ran once at boot
        /// </summary>
        public static void Init()
        {
            HW.Init();
            //Thread.Sleep(500);
            Console.WriteLine("FileSystem service...");
            FSService.Init();
            Console.WriteLine("Filesystem: " + FSService.Active);
            if (FSService.Active == true)
            {
                for (int i = 1; i < SystemFunctions.IDEs.Length; i++)
                {
                    new DiskListing(i, SystemFunctions.IDEs[i]);
                }
                InstallService.Init();
            }

            SystemCalls MEFAPI = new SystemCalls();

            for (int i = 0; i < Kernel.Drivers.Count; i++)
            {
                if (Kernel.Drivers[i].Init())
                {
                    Console.WriteLine(Kernel.Drivers[i].Name + "' loaded sucessfully");
                }
                else
                {
                    Console.WriteLine("Failure loading module '" + Kernel.Drivers[i].Name + "'");
                    Console.ReadKey();
                }
            }
        }