sched: add kernel-mode context switching
This commit is contained in:
10
arch/x86_64/include/socks/machine/thread.h
Normal file
10
arch/x86_64/include/socks/machine/thread.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef SOCKS_X86_64_THREAD_H_
|
||||
#define SOCKS_X86_64_THREAD_H_
|
||||
|
||||
#include <socks/sched.h>
|
||||
|
||||
extern void switch_to(struct thread *from, struct thread *to);
|
||||
extern void prepare_stack(uintptr_t ip, uintptr_t *sp);
|
||||
extern void user_jump(uintptr_t ip, uintptr_t sp);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user