kernel: fix sanity check
[minix.git] / sys / arch / arm / include / mcontext.h
bloba016c0172998f5b593d6e7410a9934d92a282b7b
1 #ifndef _MACHINE_MCONTEXT_H
2 #define _MACHINE_MCONTEXT_H
4 #include <machine/stackframe.h>
6 #define MCF_MAGIC 0xc0ffee
8 /* Context to describe processor state */
9 typedef struct __mcontext {
10 int mc_magic;
11 struct stackframe_s mc_p_reg;
12 } mcontext_t;
14 __BEGIN_DECLS
15 int setmcontext(const mcontext_t *mcp);
16 int getmcontext(mcontext_t *mcp);
17 __END_DECLS
19 #endif /* _MACHINE_MCONTEXT_H */