From 4a713d8b6daa7e58ba824aedd8f39869e9e7c589 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Fri, 27 Jan 2006 12:54:47 +0000 Subject: [PATCH] Added sys_privctl.c. --- lib/syslib/Makefile.in | 2 +- lib/syslib/sys_privctl.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 lib/syslib/sys_privctl.c diff --git a/lib/syslib/Makefile.in b/lib/syslib/Makefile.in index 1fb9b74dc..295286dda 100644 --- a/lib/syslib/Makefile.in +++ b/lib/syslib/Makefile.in @@ -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 \ diff --git a/lib/syslib/sys_privctl.c b/lib/syslib/sys_privctl.c new file mode 100644 index 000000000..ed05f3105 --- /dev/null +++ b/lib/syslib/sys_privctl.c @@ -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); +} -- 2.44.0