- Timestamp:
- 2006-04-22T18:05:16Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 613bc54
- Parents:
- 68091bd
- Location:
- generic
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/ddi/ddi.h
r68091bd rc7c0b89b 40 40 * Interface to be implemented by all architectures. 41 41 */ 42 extern __native ddi_int_control_arch(__native enable, __native *flags); 43 extern __native ddi_int_control(__native enable, __native *flags); 42 44 extern int ddi_enable_iospace_arch(task_t *task, __address ioaddr, size_t size); 43 45 -
generic/include/security/cap.h
r68091bd rc7c0b89b 58 58 #define CAP_IO_MANAGER (1<<2) 59 59 60 /** 61 * CAP_INT_CONTROL allows its holder to disable interrupts 62 */ 63 #define CAP_INT_CONTROL (1<<3) 64 60 65 typedef __u32 cap_t; 61 66 -
generic/include/syscall/syscall.h
r68091bd rc7c0b89b 33 33 SYS_IO = 0, 34 34 SYS_TLS_SET = 1, /* Hardcoded in AMD64,IA32 uspace - psthread.S */ 35 SYS_INT_CONTROL = 2, /* Hardcoded in all SYSCALL handlers */ 35 36 SYS_THREAD_CREATE, 36 37 SYS_THREAD_EXIT, -
generic/src/ddi/ddi.c
r68091bd rc7c0b89b 195 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 -
generic/src/syscall/syscall.c
r68091bd rc7c0b89b 65 65 } 66 66 67 static __native sys_int_control(int enable) 68 { 69 panic("Not implemented."); 70 } 71 67 72 /** Dispatch system call */ 68 73 __native syscall_handler(__native a1, __native a2, __native a3, … … 78 83 sys_io, 79 84 sys_tls_set, 85 sys_int_control, 80 86 sys_thread_create, 81 87 sys_thread_exit,
Note:
See TracChangeset
for help on using the changeset viewer.