thread: add kthreads

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-12 22:03:52 -04:00
commit 54803ed29b
Signed by: michaelsshaw
GPG key ID: 5A5E0FB20708A9E7
6 changed files with 79 additions and 36 deletions

View file

@ -18,6 +18,7 @@ struct cpu_local {
vaddr_t irq_rsp;
struct tss tss;
u32 apic_id;
struct thread *idle_thread;
} PACKED;
struct pt_regs {
@ -45,7 +46,6 @@ void enter_userspace_init(struct thread *thread, uaddr_t entry);
struct pt_regs *current_pt_regs();
u32 cpu_id();
void thread_wait();
void thread_block();
void reschedule(u64 state);
#endif /* _ARCH_PROC_H_ */