1 /* The system call implemented in this file:
2 * m_type: SYS_IOPENABLE
3 *
4 * The parameters for this system call are:
5 * m2_i2: PROC_NR (process to give I/O Protection Level bits)
6 *
7 * Author:
8 * Jorrit N. Herder <jnherder@cs.vu.nl>
9 */
10
11 #include "../kernel.h"
12 #include "../system.h"
13
14 /*===========================================================================*
15 * do_iopenable *
16 *===========================================================================*/
17 PUBLIC int do_iopenable(m_ptr)
18 register message *m_ptr; /* pointer to request message */
19 {
20 int proc_nr;
21
22 #if 1 /* ENABLE_USERPRIV && ENABLE_USERIOPL */
23 proc_nr= m_ptr->PROC_NR;
24 if (proc_nr == SELF)
25 proc_nr = m_ptr->m_source;
26 enable_iop(proc_addr(proc_nr));
27 return(OK);
28 #else
29 return(EPERM);
30 #endif
31 }
32
33
Cache object: c06add79599f8a8728641b71457713dd
|