Example #1
0
        public static void EntryPoint()
        {
            Console.SetBackground(ConsoleColor.Blue);
            Console.SetForground(ConsoleColor.White);
            Console.ClearScreen();
            Console.Write("Booting...");

            BootPageAllocator.Setup();

            Console.Write("1...");
            BootMemoryMap.Initialize();

            Console.Write("3...");
            BootMemoryMap.ImportPlatformMemoryMap();

            Console.Write("2...");
            BootMemoryMap.ImportMultibootV1MemoryMap();
            BootMemoryMap.Dump();

            Console.Write("4...");
            PhysicalPageAllocator.Setup();

            Console.Write("5...");
            PageTable.Setup();

            Console.Write("6...");

            while (true)
            {
            }
        }
Example #2
0
        public static void EntryPoint()
        {
            Platform.EntryPoint();

            Console.SetBackground(ConsoleColor.Blue);
            Console.SetForground(ConsoleColor.White);
            Console.ClearScreen();
            Console.Write("Booting...");

            BootPageAllocator.Setup();
            Console.Write("1...");

            BootMemoryMap.Initialize();
            Console.Write("2...");

            Platform.UpdateBootMemoryMap();
            Console.Write("3...");

            BootMemoryMap.ImportMultibootV1MemoryMap();
            Console.Write("4...");

            //PhysicalPageAllocator.Setup();

            // TODO: PageFrameAllocator --- allocates single pages only

            PageTable.Setup();
            Console.Write("5...");

            while (true)
            {
            }
        }