Begin multitasking refactor to support ring-3 TSS
diff --git a/include/kernel/task.h b/include/kernel/task.h
index 83e7fd0..38ff7ee 100644
--- a/include/kernel/task.h
+++ b/include/kernel/task.h
@@ -34,7 +34,7 @@
struct process *proc;
/// Physical address of the top of the stack.
uint stack_top_p;
- uint esp, ebp, eip;
+ struct registers state;
};
struct ll_task_i
@@ -70,9 +70,10 @@
void kill_this_thread();
/**
- * Force a task switch. Only call in a safe environment (ISR).
+ * Force a task switch
+ * @param ctx The context to switch out of
*/
-extern void switch_task();
+void switch_task(struct registers ctx);
/**
* Switch to a specific task. Only call in a safe environment (ISR).