1*433d6423SLionel Sambuc #include "syslib.h" 2*433d6423SLionel Sambuc 3*433d6423SLionel Sambuc #include <unistd.h> 4*433d6423SLionel Sambuc #include <string.h> 5*433d6423SLionel Sambuc 6*433d6423SLionel Sambuc int vm_set_priv(endpoint_t ep,void * buf,int sys_proc)7*433d6423SLionel Sambucvm_set_priv(endpoint_t ep, void *buf, int sys_proc) 8*433d6423SLionel Sambuc { 9*433d6423SLionel Sambuc message m; 10*433d6423SLionel Sambuc 11*433d6423SLionel Sambuc memset(&m, 0, sizeof(m)); 12*433d6423SLionel Sambuc m.VM_RS_NR = ep; 13*433d6423SLionel Sambuc m.VM_RS_BUF = (long) buf; 14*433d6423SLionel Sambuc m.VM_RS_SYS = sys_proc; 15*433d6423SLionel Sambuc 16*433d6423SLionel Sambuc return _taskcall(VM_PROC_NR, VM_RS_SET_PRIV, &m); 17*433d6423SLionel Sambuc } 18