Changeset 41811af in mainline for uspace/srv/hw/irc/apic/apic.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (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/srv/hw/irc/apic/apic.c
r9536e6e r41811af 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: … … 102 108 103 109 if ((sysinfo_get_value("apic", &apic) != EOK) || (!apic)) { 104 printf( NAME ": No APIC found\n");110 printf("%s: No APIC found\n", NAME); 105 111 return false; 106 112 } … … 114 120 int main(int argc, char **argv) 115 121 { 116 printf( NAME ": HelenOS APIC driver\n");122 printf("%s: HelenOS APIC driver\n", NAME); 117 123 118 124 if (!apic_init()) 119 125 return -1; 120 126 121 printf(NAME ": Accepting connections\n"); 127 printf("%s: Accepting connections\n", NAME); 128 task_retval(0); 122 129 async_manager(); 123 130
Note:
See TracChangeset
for help on using the changeset viewer.