summaryrefslogtreecommitdiffstats
path: root/tsk/tasking.h
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2024-03-13 09:58:22 -0400
committerJon Santmyer <jon@jonsantmyer.com>2024-03-13 09:58:22 -0400
commitf46ab8ca2050ee77edf6e6b979875426bdaf29dc (patch)
tree1877f76c37adc4c7f7ea98a24f2cd1a61432ac63 /tsk/tasking.h
parentd1ff7bcc91886626dc9060ec5fb67ee102ab7c1d (diff)
downloadjove-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.h14
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