Rev 1248 | Rev 1288 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1248 | Rev 1278 | ||
---|---|---|---|
Line 201... | Line 201... | ||
201 | ddi_ioarg_t arg; |
201 | ddi_ioarg_t arg; |
202 | 202 | ||
203 | copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); |
203 | copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); |
204 | return (__native) ddi_iospace_enable((task_id_t) arg.task_id, (__address) arg.ioaddr, (size_t) arg.size); |
204 | return (__native) ddi_iospace_enable((task_id_t) arg.task_id, (__address) arg.ioaddr, (size_t) arg.size); |
205 | } |
205 | } |
206 | - | ||
207 | __native ddi_int_control(__native enable, __native *flags) |
- | |
208 | { |
- | |
209 | if (! cap_get(TASK) & CAP_INT_CONTROL) |
- | |
210 | return EPERM; |
- | |
211 | return ddi_int_control_arch(enable, flags); |
- | |
212 | } |
- |