Changeset 94e46c9 in mainline for uspace/lib/c/generic/irq.c
- Timestamp:
- 2015-05-23T04:09:11Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b5143bd
- Parents:
- a25d893 (diff), 0683992 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/irq.c
ra25d893 r94e46c9 35 35 #include <ipc/irq.h> 36 36 #include <libc.h> 37 #include <stdlib.h> 38 #include <macros.h> 39 40 static irq_cmd_t default_cmds[] = { 41 { 42 .cmd = CMD_ACCEPT 43 } 44 }; 45 46 static const irq_code_t default_ucode = { 47 0, 48 NULL, 49 ARRAY_SIZE(default_cmds), 50 default_cmds 51 }; 37 52 38 53 /** Subscribe to IRQ notification. … … 49 64 const irq_code_t *ucode) 50 65 { 66 if (ucode == NULL) 67 ucode = &default_ucode; 68 51 69 return __SYSCALL4(SYS_IPC_IRQ_SUBSCRIBE, inr, devno, method, 52 70 (sysarg_t) ucode);
Note:
See TracChangeset
for help on using the changeset viewer.