00001
00002
00003
00004
00005
00006 #include<linux/linkage.h>
00007 #include<linux/sched.h>
00008
00009 #include<ssdef.h>
00010 #include<system_data_cells.h>
00011
00012 asmlinkage int exe_setprv(char enbflg, struct _generic_64 *prvadr, char prmflg, struct _generic_64 *prvprv) {
00013
00014
00015 struct _pcb * pcb = ctl_gl_pcb;
00016 long long * p = prvprv;
00017 if (p)
00018 *p=pcb->pcb_l_priv;
00019 long long * l = *(long long*)prvadr;
00020 p = prvadr;
00021 if (enbflg)
00022 pcb->pcb_l_priv|=*p;
00023 else
00024 pcb->pcb_l_priv&=~*p;
00025
00026 return SS__NORMAL;
00027 }
00028