ArvernOS
|
#include <proc/task.h>
Functions | |
task_t * | arch_task_init () |
void | arch_task_switch (task_t *prev, task_t *next) |
task_t * | arch_task_create (uint64_t clone_flags, uintptr_t entrypoint) |
task_t * arch_task_create | ( | uint64_t | clone_flags, |
uintptr_t | entrypoint ) |
Creates a new task.
This function is called by task_create()
.
clone_flags | configuration flags |
entrypoint | the entrypoint of the task |
task_t * arch_task_init | ( | ) |
Creates and returns the initial task.
This function is called by task_init()
.
Switches to a new task.
This function is called by task_switch()
, which is called by task_schedule()
and task_schedule_on_timer_tick()
.
prev | the task that should be stopped |
next | the task that should be started |