Added sys_privctl.c.

This commit is contained in:
Philip Homburg 2006-01-27 12:54:47 +00:00
parent 43051c182a
commit 4a713d8b6d
2 changed files with 14 additions and 1 deletions

View file

@ -43,7 +43,7 @@ libsys_FILES=" \
sys_setalarm.c \
sys_sigreturn.c \
sys_sigsend.c \
sys_svrctl.c \
sys_privctl.c \
sys_times.c \
sys_trace.c \
sys_umap.c \

13
lib/syslib/sys_privctl.c Normal file
View 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);
}