#define _X86_LINUX_OS_H
typedef struct ucontext os_context_t;
-typedef long os_context_register_t;
+typedef greg_t os_context_register_t;
-static inline os_context_t *arch_os_get_context(void **void_context) {
+static inline os_context_t *arch_os_get_context(void **void_context)
+{
return (os_context_t *) *void_context;
}
-extern struct thread *arch_os_get_current_thread();
unsigned long os_context_fp_control(os_context_t *context);
+#define RESTORE_FP_CONTROL_FROM_CONTEXT
void os_restore_fp_control(os_context_t *context);
-int arch_os_thread_init(struct thread *thread);
#endif /* _X86_LINUX_OS_H */