Changeset 79ae36dd in mainline for uspace/srv/hw/irc/apic/apic.c
- Timestamp:
- 2011-06-08T19:01:55Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0eff68e
- Parents:
- 764d71e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/apic/apic.c
r764d71e r79ae36dd 38 38 #include <ipc/services.h> 39 39 #include <ipc/irc.h> 40 #include < ipc/ns.h>40 #include <ns.h> 41 41 #include <sysinfo.h> 42 42 #include <as.h> … … 79 79 callid = async_get_call(&call); 80 80 81 if (!IPC_GET_IMETHOD(call)) { 82 /* The other side has hung up. */ 83 async_answer_0(callid, EOK); 84 return; 85 } 86 81 87 switch (IPC_GET_IMETHOD(call)) { 82 88 case IRC_ENABLE_INTERRUPT: … … 87 93 async_answer_0(callid, EOK); 88 94 break; 89 case IPC_M_PHONE_HUNGUP:90 /* The other side has hung up. */91 async_answer_0(callid, EOK);92 return;93 95 default: 94 96 async_answer_0(callid, EINVAL); … … 106 108 107 109 if ((sysinfo_get_value("apic", &apic) != EOK) || (!apic)) { 108 printf( NAME ": No APIC found\n");110 printf("%s: No APIC found\n", NAME); 109 111 return false; 110 112 } … … 118 120 int main(int argc, char **argv) 119 121 { 120 printf( NAME ": HelenOS APIC driver\n");122 printf("%s: HelenOS APIC driver\n", NAME); 121 123 122 124 if (!apic_init()) 123 125 return -1; 124 126 125 printf(NAME ": Accepting connections\n"); 127 printf("%s: Accepting connections\n", NAME); 128 task_retval(0); 126 129 async_manager(); 127 130
Note:
See TracChangeset
for help on using the changeset viewer.