Changes in uspace/drv/intctl/i8259/i8259.c [fafb8e5:beb83c1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/i8259/i8259.c
rfafb8e5 rbeb83c1 108 108 async_get_call(&call); 109 109 110 if (! ipc_get_imethod(&call)) {110 if (!IPC_GET_IMETHOD(call)) { 111 111 /* The other side has hung up. */ 112 112 async_answer_0(&call, EOK); … … 114 114 } 115 115 116 switch ( ipc_get_imethod(&call)) {116 switch (IPC_GET_IMETHOD(call)) { 117 117 case IRC_ENABLE_INTERRUPT: 118 118 async_answer_0(&call, pic_enable_irq(i8259, 119 ipc_get_arg1(&call)));119 IPC_GET_ARG1(call))); 120 120 break; 121 121 case IRC_DISABLE_INTERRUPT: … … 142 142 ddf_fun_t *fun_a = NULL; 143 143 errno_t rc; 144 bool bound = false;145 144 146 145 if ((sysinfo_get_value("i8259", &have_i8259) != EOK) || (!have_i8259)) { … … 175 174 } 176 175 177 bound = true;178 179 176 rc = ddf_fun_add_to_category(fun_a, "irc"); 180 177 if (rc != EOK) … … 183 180 return EOK; 184 181 error: 185 if (bound)186 ddf_fun_unbind(fun_a);187 182 if (fun_a != NULL) 188 183 ddf_fun_destroy(fun_a);
Note:
See TracChangeset
for help on using the changeset viewer.