Scheduler returns to IDLE when.. idle.
This commit is contained in:
@@ -45,7 +45,7 @@ void process_display_list(struct process_t* processes_list)
|
||||
|
||||
struct process_t* process_create(char* name, void(*function)(void*), void* arg)
|
||||
{
|
||||
/* CLEAR_INTERRUPTS; */
|
||||
CLEAR_INTERRUPTS;
|
||||
struct process_t* proc = (struct process_t*)kmalloc(sizeof(struct process_t));
|
||||
|
||||
struct cpu_status_t* ctx = (struct cpu_status_t*)kmalloc(sizeof(struct cpu_status_t));
|
||||
@@ -79,7 +79,7 @@ struct process_t* process_create(char* name, void(*function)(void*), void* arg)
|
||||
|
||||
process_add(&processes_list, proc);
|
||||
|
||||
/* SET_INTERRUPTS; */
|
||||
SET_INTERRUPTS;
|
||||
return proc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user