Changeset 738ad2e in mainline for generic/src/syscall/syscall.c


Ignore:
Timestamp:
2006-05-02T18:19:43Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
281224a
Parents:
e34a141
Message:

Changed interrupt_control to preemption_control.

File:
1 edited

Legend:

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

    re34a141 r738ad2e  
    5757}
    5858
    59 static __native sys_int_control(int enable)
     59static __native sys_preempt_control(int enable)
    6060{
    61         panic("Not implemented.");
     61        if (! cap_get(TASK) & CAP_PREEMPT_CONTROL)
     62                return EPERM;
     63        if (enable)
     64                preemption_enable();
     65        else
     66                preemption_disable();
     67        return 0;
    6268}
    6369
     
    7581        sys_io,
    7682        sys_tls_set,
    77         sys_int_control,
     83        sys_preempt_control,
    7884
    7985        /* Thread and task related syscalls. */
Note: See TracChangeset for help on using the changeset viewer.