summaryrefslogtreecommitdiff
path: root/src/kernel/task.c
blob: c08a195799a73faafb9c3a3a19d297b69303c81f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "task.h"
#include "panic.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");
}