Subversion Repositories HelenOS-historic

Rev

Rev 1191 | Rev 1227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1191 Rev 1212
Line 192... Line 192...
192
    ddi_ioarg_t arg;
192
    ddi_ioarg_t arg;
193
   
193
   
194
    copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t));
194
    copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t));
195
    return (__native) ddi_enable_iospace((task_id_t) arg.task_id, (__address) arg.ioaddr, (size_t) arg.size);
195
    return (__native) ddi_enable_iospace((task_id_t) arg.task_id, (__address) arg.ioaddr, (size_t) arg.size);
196
}
196
}
-
 
197
 
-
 
198
__native ddi_int_control(__native enable, __native *flags)
-
 
199
{
-
 
200
    if (! cap_get(TASK) & CAP_INT_CONTROL)
-
 
201
        return EPERM;
-
 
202
    return ddi_int_control_arch(enable, flags);
-
 
203
}
-
 
204