2006-01-27 13:54:47 +01:00
|
|
|
#include "syslib.h"
|
|
|
|
|
2009-09-23 10:46:17 +02:00
|
|
|
int sys_privctl(endpoint_t proc_ep, int request, void *p)
|
2006-01-27 13:54:47 +01:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2014-05-23 11:08:21 +02:00
|
|
|
m.m_lsys_krn_sys_privctl.endpt = proc_ep;
|
|
|
|
m.m_lsys_krn_sys_privctl.request = request;
|
|
|
|
m.m_lsys_krn_sys_privctl.arg_ptr = (vir_bytes)p;
|
2006-01-27 13:54:47 +01:00
|
|
|
|
2010-02-09 16:20:09 +01:00
|
|
|
return _kernel_call(SYS_PRIVCTL, &m);
|
2006-01-27 13:54:47 +01:00
|
|
|
}
|
2009-11-03 12:12:23 +01:00
|
|
|
|
|
|
|
int sys_privquery_mem(endpoint_t proc_ep, phys_bytes start, phys_bytes len)
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2014-05-23 11:08:21 +02:00
|
|
|
m.m_lsys_krn_sys_privctl.endpt = proc_ep;
|
|
|
|
m.m_lsys_krn_sys_privctl.request = SYS_PRIV_QUERY_MEM;
|
|
|
|
m.m_lsys_krn_sys_privctl.phys_start = start;
|
|
|
|
m.m_lsys_krn_sys_privctl.phys_len = len;
|
2009-11-03 12:12:23 +01:00
|
|
|
|
2010-02-09 16:20:09 +01:00
|
|
|
return _kernel_call(SYS_PRIVCTL, &m);
|
2009-11-03 12:12:23 +01:00
|
|
|
}
|