Message type for PM_MCONTEXT
Change-Id: I4ab9fc23ce8d78e03582580feba5ba96541f0f7e
This commit is contained in:
@@ -14,7 +14,7 @@ int setmcontext(const mcontext_t *mcp)
|
||||
message m;
|
||||
|
||||
memset(&m, 0, sizeof(m));
|
||||
m.PM_MCONTEXT_CTX = (char *) __UNCONST(mcp);
|
||||
m.m_lc_pm_mcontext.ctx = (vir_bytes)mcp;
|
||||
|
||||
return(_syscall(PM_PROC_NR, PM_SETMCONTEXT, &m));
|
||||
}
|
||||
@@ -25,7 +25,7 @@ int getmcontext(mcontext_t *mcp)
|
||||
message m;
|
||||
|
||||
memset(&m, 0, sizeof(m));
|
||||
m.PM_MCONTEXT_CTX = (char *) mcp;
|
||||
m.m_lc_pm_mcontext.ctx = (vir_bytes)mcp;
|
||||
|
||||
return(_syscall(PM_PROC_NR, PM_GETMCONTEXT, &m));
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
int sys_getmcontext(proc, mcp)
|
||||
endpoint_t proc; /* process retrieving context */
|
||||
mcontext_t *mcp; /* where to store context */
|
||||
vir_bytes mcp; /* where to store context */
|
||||
{
|
||||
/* A process wants to store its context in mcp. */
|
||||
|
||||
@@ -17,7 +17,7 @@ mcontext_t *mcp; /* where to store context */
|
||||
|
||||
int sys_setmcontext(proc, mcp)
|
||||
endpoint_t proc; /* process setting context */
|
||||
mcontext_t *mcp; /* where to get context from */
|
||||
vir_bytes mcp; /* where to get context from */
|
||||
{
|
||||
/* A process wants to restore context stored in ucp. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user