aboutsummaryrefslogtreecommitdiff
path: root/src/core/scheduler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/scheduler.h')
-rw-r--r--src/core/scheduler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/scheduler.h b/src/core/scheduler.h
index ecb9428..62d6561 100644
--- a/src/core/scheduler.h
+++ b/src/core/scheduler.h
@@ -35,6 +35,7 @@ extern u16 nproc; // Number of active tasks
* Must be called at each clock interrupt
*/
void clock();
+
/**
* Called by clock() and schedule the next task
* Stack is a pointer pointing to the gs register on the stack.
@@ -42,10 +43,12 @@ void clock();
* order: gs,fs,es,ds,edi,esi,ebp,UNUSED,edx,ecx,ebx,eax,eip,cs,eflags,esp,ss
*/
void schedule(u32 *stack);
+
/**
* Create a new task to be schedule
*/
void task_create(int *page_dir, void *task, int task_size, int stack_offset);
+
/**
* Stack the scheduler starting by task with PID 0
*/