Changeset 2bb8648 in mainline for generic/src/ipc/sysipc.c
- Timestamp:
- 2006-05-07T15:21:11Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 31282f9
- Parents:
- ecf3722
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/ipc/sysipc.c
recf3722 r2bb8648 40 40 #include <print.h> 41 41 #include <syscall/copy.h> 42 #include <security/cap.h> 42 43 43 44 #define GET_CHECK_PHONE(phone,phoneid,err) { \ … … 491 492 __native sys_ipc_register_irq(__native irq, irq_code_t *ucode) 492 493 { 494 if (!(cap_get(TASK) & CAP_IRQ_REG)) 495 return EPERM; 496 493 497 if (irq >= IRQ_COUNT) 494 return -ELIMIT;498 return (__native) ELIMIT; 495 499 496 500 irq_ipc_bind_arch(irq); … … 502 506 __native sys_ipc_unregister_irq(__native irq) 503 507 { 508 if (!(cap_get(TASK) & CAP_IRQ_REG)) 509 return EPERM; 510 504 511 if (irq >= IRQ_COUNT) 505 return -ELIMIT;512 return (__native) ELIMIT; 506 513 507 514 ipc_irq_unregister(&TASK->answerbox, irq);
Note:
See TracChangeset
for help on using the changeset viewer.