[Prev][Next][Index][Thread]

Re: Problems coding a scheduler



I'm not quite familiar with OSKit programming, but...
 
>    fill_gate(&base_idt[irq_master_base + 0], 0, USER_TSS1,
>                          ACC_TASK_GATE | ACC_PL_K, 0);

I've never heard of anyone making a scheduler using a task gate... I use an
interrupt gate, scheduler function selects the next thread and jumps to its
TSS.

PS, don't forget to save your registers and initialise the kernel data segment
before entry to the scheduler function, and to restore them afterwards.

Hope this helps...
Ramon


References: