mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
kernel threads
kernel threads and preemptive multitasking
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#include <arch/kstack.h>
|
||||
#include <arch/ist.h>
|
||||
#include <arch/cls.h>
|
||||
|
||||
void arch_setkernelstack(void* stack){
|
||||
|
||||
arch_getcls()->ist.rsp0 = (uint64_t)stack;
|
||||
}
|
||||
Reference in New Issue
Block a user