Added sys_privctl.c.
This commit is contained in:
parent
43051c182a
commit
4a713d8b6d
2 changed files with 14 additions and 1 deletions
|
@ -43,7 +43,7 @@ libsys_FILES=" \
|
||||||
sys_setalarm.c \
|
sys_setalarm.c \
|
||||||
sys_sigreturn.c \
|
sys_sigreturn.c \
|
||||||
sys_sigsend.c \
|
sys_sigsend.c \
|
||||||
sys_svrctl.c \
|
sys_privctl.c \
|
||||||
sys_times.c \
|
sys_times.c \
|
||||||
sys_trace.c \
|
sys_trace.c \
|
||||||
sys_umap.c \
|
sys_umap.c \
|
||||||
|
|
13
lib/syslib/sys_privctl.c
Normal file
13
lib/syslib/sys_privctl.c
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#include "syslib.h"
|
||||||
|
|
||||||
|
int sys_privctl(int proc, int request, int i, vir_bytes p)
|
||||||
|
{
|
||||||
|
message m;
|
||||||
|
|
||||||
|
m.CTL_PROC_NR = proc;
|
||||||
|
m.CTL_REQUEST = request;
|
||||||
|
m.CTL_MM_PRIV = i;
|
||||||
|
m.CTL_ARG_PTR = (char *) p;
|
||||||
|
|
||||||
|
return _taskcall(SYSTASK, _SYS_PRIVCTL, &m);
|
||||||
|
}
|
Loading…
Reference in a new issue