[93108e]: src / runtime / x86-linux-os.h Maximize Restore History

Download this file

x86-linux-os.h    19 lines (14 with data), 573 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#ifndef _X86_LINUX_OS_H
#define _X86_LINUX_OS_H
typedef struct ucontext os_context_t;
typedef long os_context_register_t;
static inline os_context_t *arch_os_get_context(void **void_context) {
return (os_context_t *) *void_context;
}
/* if you can't do something like this (maybe because you're using a
* register for thread base that is only available in Lisp code)
* you'll just have to find_thread_by_pid(getpid())
*/
unsigned long os_context_fp_control(os_context_t *context);
void os_restore_fp_control(os_context_t *context);
#endif /* _X86_LINUX_OS_H */