thread: add kthreads
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
da53fa3871
commit
54803ed29b
6 changed files with 79 additions and 36 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue