Unbreak sparc build.
[sbcl.git] / src / runtime / arm-android-os.h
blob1aeade7a959edaee2ff3337d049dcafdd1c97e00
1 #ifndef _ARM_ANDROID_OS_H
2 #define _ARM_ANDROID_OS_H
4 #include <signal.h>
6 typedef struct sigcontext mcontext_t;
8 typedef struct os_context {
9 unsigned long uc_flags;
10 struct ucontext* uc_link;
11 stack_t uc_stack;
12 mcontext_t uc_mcontext;
13 sigset_t uc_sigmask;
14 char __padding[128 - sizeof(sigset_t)];
15 unsigned long uc_regspace[128] __attribute__((__aligned__(8)));
16 } os_context_t;
19 typedef long os_context_register_t;
21 static inline os_context_t *arch_os_get_context(void **void_context)
23 return (os_context_t *) *void_context;
26 unsigned long os_context_fp_control(os_context_t *context);
27 #define RESTORE_FP_CONTROL_FROM_CONTEXT
28 void os_restore_fp_control(os_context_t *context);
30 #endif /* _ARM_LINUX_OS_H */