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;
|
|
|
|
|
2009-09-22 23:42:02 +02:00
|
|
|
m.CTL_ENDPT = proc_ep;
|
2006-01-27 13:54:47 +01:00
|
|
|
m.CTL_REQUEST = request;
|
2006-01-27 15:14:13 +01:00
|
|
|
m.CTL_ARG_PTR = p;
|
2006-01-27 13:54:47 +01:00
|
|
|
|
2006-01-27 15:14:13 +01:00
|
|
|
return _taskcall(SYSTASK, 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;
|
|
|
|
|
|
|
|
m.CTL_ENDPT = proc_ep;
|
|
|
|
m.CTL_REQUEST = SYS_PRIV_QUERY_MEM;
|
|
|
|
m.CTL_PHYSSTART = start;
|
|
|
|
m.CTL_PHYSLEN = len;
|
|
|
|
|
|
|
|
return _taskcall(SYSTASK, SYS_PRIVCTL, &m);
|
|
|
|
}
|