summaryrefslogtreecommitdiff
path: root/src/kernel/task.c
blob: 3e64639b19b310a983919d6525634955e12f0a9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "panic.h"
#include "task.h"

segment_id new_segment(bool is_code, uint32_t length, uint32_t *location_out) {
  panic("TODO: make new segment");
}

segment_id mirror_segment(bool is_code, segment_id other) {
  panic("TODO: make new segment with same base and limit");
}

task_handle new_task(segment_id cs, segment_id ds, uint32_t eip, uint32_t esp) {
  panic("TODO: add task to scheduler");
}