bef0e3eb63
swapcontext, and makecontext). - Fix VM to not erroneously think the stack segment and data segment have collided when a user-space thread invokes brk(). - Add test51 to test ucontext functionality. - Add man pages for ucontext system calls.
23 lines
522 B
C
23 lines
522 B
C
#ifndef _MACHINE_MCONTEXT_H
|
|
#define _MACHINE_MCONTEXT_H 1
|
|
|
|
#include <machine/fpu.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;
|
|
#if (_MINIX_CHIP == _CHIP_INTEL)
|
|
union fpu_state_u mc_fpu_state;
|
|
#endif
|
|
short mc_fpu_flags;
|
|
} mcontext_t;
|
|
|
|
_PROTOTYPE( int setmcontext, (const mcontext_t *mcp) );
|
|
_PROTOTYPE( int getmcontext, (mcontext_t *mcp) );
|
|
|
|
#endif /* _MACHINE_MCONTEXT_H */
|
|
|