arm: protect state after signal handler
[minix.git] / sys / arch / i386 / include / mcontext.h
blob3f8ab00643a44e26055bbdc199893c29b4252b42
1 #ifndef _MACHINE_MCONTEXT_H
2 #define _MACHINE_MCONTEXT_H 1
4 #include <machine/fpu.h>
5 #include <machine/stackframe.h>
7 #define MCF_MAGIC 0xc0ffee
9 /* Context to describe processor state */
10 typedef struct __mcontext {
11 int mc_magic;
12 struct stackframe_s mc_p_reg;
13 union fpu_state_u mc_fpu_state;
14 short mc_fpu_flags;
15 } mcontext_t;
17 __BEGIN_DECLS
18 int setmcontext(const mcontext_t *mcp);
19 int getmcontext(mcontext_t *mcp);
20 __END_DECLS
22 #endif /* _MACHINE_MCONTEXT_H */