26 lines
358 B
C
26 lines
358 B
C
/*
|
|
* mcontext.c
|
|
*/
|
|
#include <lib.h>
|
|
#include <ucontext.h>
|
|
#include <unistd.h>
|
|
|
|
PUBLIC int setmcontext(const mcontext_t *mcp)
|
|
{
|
|
message m;
|
|
|
|
m.m1_p1 = (char *) mcp;
|
|
|
|
return(_syscall(PM_PROC_NR, SETMCONTEXT, &m));
|
|
}
|
|
|
|
|
|
PUBLIC int getmcontext(mcontext_t *mcp)
|
|
{
|
|
message m;
|
|
|
|
m.m1_p1 = (char *) mcp;
|
|
|
|
return(_syscall(PM_PROC_NR, GETMCONTEXT, &m));
|
|
}
|
|
|