#define SYS_PRIV_UPDATE_SYS 9 /* Update a sys privilege structure. */
#define SYS_PRIV_YIELD 10 /* Allow process to run and suspend */
-/* Field names for SYS_FORK, _EXEC, _EXIT, GETMCONTEXT, SETMCONTEXT.*/
-#define PR_ENDPT m1_i1 /* indicates a process */
-
/* Constants for exec. FIXME: these do not belong here. */
#define PMEF_AUXVECTORS 20
#define PMEF_EXECNAMELEN1 PATH_MAX
} mess_lsys_krn_sys_abort;
_ASSERT_MSG_SIZE(mess_lsys_krn_sys_abort);
+typedef struct {
+ endpoint_t endpt;
+
+ uint8_t padding[52];
+} mess_lsys_krn_sys_clear;
+_ASSERT_MSG_SIZE(mess_lsys_krn_sys_clear);
+
typedef struct {
endpoint_t src_endpt;
vir_bytes src_addr;
mess_lsys_krn_schedctl m_lsys_krn_schedctl;
mess_lsys_krn_schedule m_lsys_krn_schedule;
mess_lsys_krn_sys_abort m_lsys_krn_sys_abort;
+ mess_lsys_krn_sys_clear m_lsys_krn_sys_clear;
mess_lsys_krn_sys_copy m_lsys_krn_sys_copy;
mess_lsys_krn_sys_exec m_lsys_krn_sys_exec;
mess_lsys_krn_sys_fork m_lsys_krn_sys_fork;
* m_type: SYS_CLEAR
*
* The parameters for this kernel call are:
- * m1_i1: PR_ENDPT (endpoint of process to clean up)
+ * m_lsys_krn_sys_clear.endpt (endpoint of process to clean up)
*/
#include "kernel/system.h"
int exit_p;
int i;
- if(!isokendpt(m_ptr->PR_ENDPT, &exit_p)) { /* get exiting process */
+ if(!isokendpt(m_ptr->m_lsys_krn_sys_clear.endpt, &exit_p)) {
+ /* get exiting process */
return EINVAL;
}
rc = proc_addr(exit_p); /* clean up */
}
#endif /* USE_CLEAR */
-
*/
message m;
- m.PR_ENDPT = proc_ep;
+ m.m_lsys_krn_sys_clear.endpt = proc_ep;
return(_kernel_call(SYS_CLEAR, &m));
}