Changes in uspace/srv/hw/irc/apic/apic.c [9934f7d:ccca251] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/apic/apic.c
r9934f7d rccca251 38 38 #include <ipc/services.h> 39 39 #include <ipc/irc.h> 40 #include < ns.h>40 #include <ipc/ns.h> 41 41 #include <sysinfo.h> 42 42 #include <as.h> … … 64 64 * @param iid Hash of the request that opened the connection. 65 65 * @param icall Call data of the request that opened the connection. 66 * @param arg Local argument.66 * 67 67 */ 68 static void apic_connection(ipc_callid_t iid, ipc_call_t *icall , void *arg)68 static void apic_connection(ipc_callid_t iid, ipc_call_t *icall) 69 69 { 70 70 ipc_callid_t callid; … … 78 78 while (true) { 79 79 callid = async_get_call(&call); 80 81 if (!IPC_GET_IMETHOD(call)) {82 /* The other side has hung up. */83 async_answer_0(callid, EOK);84 return;85 }86 80 87 81 switch (IPC_GET_IMETHOD(call)) { … … 108 102 109 103 if ((sysinfo_get_value("apic", &apic) != EOK) || (!apic)) { 110 printf( "%s: No APIC found\n", NAME);104 printf(NAME ": No APIC found\n"); 111 105 return false; 112 106 } … … 120 114 int main(int argc, char **argv) 121 115 { 122 printf( "%s: HelenOS APIC driver\n", NAME);116 printf(NAME ": HelenOS APIC driver\n"); 123 117 124 118 if (!apic_init()) 125 119 return -1; 126 120 127 printf("%s: Accepting connections\n", NAME); 128 task_retval(0); 121 printf(NAME ": Accepting connections\n"); 129 122 async_manager(); 130 123
Note:
See TracChangeset
for help on using the changeset viewer.