Changeset 738ad2e in mainline for generic/src/syscall/syscall.c
- Timestamp:
- 2006-05-02T18:19:43Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 281224a
- Parents:
- e34a141
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/syscall/syscall.c
re34a141 r738ad2e 57 57 } 58 58 59 static __native sys_ int_control(int enable)59 static __native sys_preempt_control(int enable) 60 60 { 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; 62 68 } 63 69 … … 75 81 sys_io, 76 82 sys_tls_set, 77 sys_ int_control,83 sys_preempt_control, 78 84 79 85 /* Thread and task related syscalls. */
Note:
See TracChangeset
for help on using the changeset viewer.