Changeset a35b458 in mainline for uspace/drv/intctl/apic/apic.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/apic/apic.c
r3061bc1 ra35b458 169 169 ipc_call_t call; 170 170 apic_t *apic; 171 171 172 172 /* 173 173 * Answer the first IPC_M_CONNECT_ME_TO call. 174 174 */ 175 175 async_answer_0(iid, EOK); 176 176 177 177 apic = (apic_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); 178 178 179 179 while (true) { 180 180 callid = async_get_call(&call); 181 181 182 182 if (!IPC_GET_IMETHOD(call)) { 183 183 /* The other side has hung up. */ … … 185 185 return; 186 186 } 187 187 188 188 switch (IPC_GET_IMETHOD(call)) { 189 189 case IRC_ENABLE_INTERRUPT: … … 213 213 void *regs; 214 214 errno_t rc; 215 215 216 216 if ((sysinfo_get_value("apic", &have_apic) != EOK) || (!have_apic)) { 217 217 printf("%s: No APIC found\n", NAME); 218 218 return ENOTSUP; 219 219 } 220 220 221 221 rc = pio_enable((void *) res->base, IO_APIC_SIZE, ®s); 222 222 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.