diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-13 09:58:22 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-13 09:58:22 -0400 |
commit | f46ab8ca2050ee77edf6e6b979875426bdaf29dc (patch) | |
tree | 1877f76c37adc4c7f7ea98a24f2cd1a61432ac63 /tsk/tasking.h | |
parent | d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d (diff) | |
download | jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.tar.gz jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.tar.bz2 jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.zip |
fix incorrect tss rsp assignment
Diffstat (limited to 'tsk/tasking.h')
-rw-r--r-- | tsk/tasking.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tsk/tasking.h b/tsk/tasking.h index d217171..b322682 100644 --- a/tsk/tasking.h +++ b/tsk/tasking.h @@ -6,20 +6,22 @@ typedef size_t tid_t; -struct Thread +struct Task { - struct Thread *next; + struct Task *next; tid_t id; uintptr_t kbp; size_t perm; }; -extern struct Thread *thread_current; +extern struct Task *task_current; void tasking_setup(void); -struct Thread *thread_new(struct Thread *parent); -struct Thread *thread_get(tid_t id); -void thread_perm_release(struct Thread *thread, size_t mask); +struct Task *task_new(struct Task *parent); +struct Task *task_get(tid_t id); + +void *task_get_pd(struct Task *task); +void task_perm_release(struct Task *task, size_t mask); #endif |