minix/include/arch/arm/include/mcontext.h
2012-08-28 13:49:27 -04:00

20 lines
385 B
C

#ifndef _MACHINE_MCONTEXT_H
#define _MACHINE_MCONTEXT_H
#include <machine/stackframe.h>
#define MCF_MAGIC 0xc0ffee
/* Context to describe processor state */
typedef struct __mcontext {
int mc_magic;
struct stackframe_s mc_p_reg;
} mcontext_t;
__BEGIN_DECLS
int setmcontext(const mcontext_t *mcp);
int getmcontext(mcontext_t *mcp);
__END_DECLS
#endif /* _MACHINE_MCONTEXT_H */