Changeset c7c0b89b in mainline for generic/src/ddi/ddi.c


Ignore:
Timestamp:
2006-04-22T18:05:16Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
613bc54
Parents:
68091bd
Message:

Added uspace call to enable/disable interrupts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/ddi/ddi.c

    r68091bd rc7c0b89b  
    195195        return (__native) ddi_enable_iospace((task_id_t) arg.task_id, (__address) arg.ioaddr, (size_t) arg.size);
    196196}
     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
Note: See TracChangeset for help on using the changeset viewer.