1 #ifndef _X86_LINUX_OS_H
2 #define _X86_LINUX_OS_H
4 typedef struct ucontext os_context_t;
5 typedef long os_context_register_t;
7 static inline os_context_t *arch_os_get_context(void **void_context) {
8 return (os_context_t *) *void_context;
11 extern struct thread *arch_os_get_current_thread();
12 unsigned long os_context_fp_control(os_context_t *context);
13 void os_restore_fp_control(os_context_t *context);
14 int arch_os_thread_init(struct thread *thread);
16 #endif /* _X86_LINUX_OS_H */