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.
26 lines
722 B
C
26 lines
722 B
C
#include "pm.h"
|
|
#include <minix/callnr.h>
|
|
#include <minix/endpoint.h>
|
|
#include <minix/com.h>
|
|
#include <minix/vm.h>
|
|
#include "mproc.h"
|
|
#include "param.h"
|
|
|
|
|
|
/*===========================================================================*
|
|
* do_setmcontext *
|
|
*===========================================================================*/
|
|
PUBLIC int do_setmcontext()
|
|
{
|
|
return sys_setmcontext(who_e, (mcontext_t *) m_in.m1_p1);
|
|
}
|
|
|
|
|
|
/*===========================================================================*
|
|
* do_getmcontext *
|
|
*===========================================================================*/
|
|
PUBLIC int do_getmcontext()
|
|
{
|
|
return sys_getmcontext(who_e, (mcontext_t *) m_in.m1_p1);
|
|
}
|
|
|