Exemple #1
0
 public static void Init()
 {
     CurrentThread      = new Thread(Init, "INIT");
     CurrentThread.name = "INIT";
     CurrentThread.Start();
     ISR.SetIntHandler(0, TaskSleep);
     ISR.SetIntHandler(8, TaskSwitch);
     IOPort.outb(0x70, 0x0C);
     IOPort.inb(0x71);
 }
Exemple #2
0
        public static void Init()
        {
            return;

            root_vpage_dir = mk_vpage_dir();
            for (int i = 0; i < 1024; i++)
            {
                idpaging(root_vpage_dir, 0, (int)Heap.heapPointer);
                root_vpage_dir++;
            }

            ISR.SetRealHandler(14, vpage_fault);
            switch_vpage_dir(root_vpage_dir);
        }