Message type for PM_MCONTEXT

Change-Id: I4ab9fc23ce8d78e03582580feba5ba96541f0f7e
This commit is contained in:
2014-05-13 16:21:04 +02:00
parent ca31c1caae
commit e1986cd160
6 changed files with 16 additions and 11 deletions

View File

@@ -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));
}

View File

@@ -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. */