TASKING PROBLEMS Help please
Posted: Fri Sep 19, 2014 1:01 am
hi,
im currently using Multitasking Of Tutorial James Molly Make UNIX clone But i am unable to init Tasking.....
whenever i init tasking and their is a PAGE FAULT EXCEPTION..
this is my Tasking INIT code..
im getting Very frustrated about That Please Help ....
im currently using Multitasking Of Tutorial James Molly Make UNIX clone But i am unable to init Tasking.....
whenever i init tasking and their is a PAGE FAULT EXCEPTION..
this is my Tasking INIT code..
Code: Select all
void init_tasking()
{
cli();
//This is going to be our userland stack
move_stack((void*)0x00100000, 0x2000);
//kernel
current_task = ready_queue = (task_t*)kmalloc(sizeof(task_t));
current_task->id = next_pid++;
current_task->thread = 0;
current_task->esp = current_task->ebp = 0;
current_task->eip = 0;
current_task->priority = PRIO_LOW;
current_task->time_to_run = 10;
current_task->ready_to_run = 1;
current_task->page_directory = current_directory;
current_task->next = 0;
sti();
}