Changeset c028b22 in mainline for uspace/srv/hw/irc/apic/apic.c


Ignore:
Timestamp:
2011-07-08T17:01:01Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc1a727
Parents:
4e36219 (diff), 026793d (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.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/irc/apic/apic.c

    r4e36219 rc028b22  
    3838#include <ipc/services.h>
    3939#include <ipc/irc.h>
    40 #include <ipc/ns.h>
     40#include <ns.h>
    4141#include <sysinfo.h>
    4242#include <as.h>
     
    6464 * @param iid   Hash of the request that opened the connection.
    6565 * @param icall Call data of the request that opened the connection.
    66  *
     66 * @param arg   Local argument.
    6767 */
    68 static void apic_connection(ipc_callid_t iid, ipc_call_t *icall)
     68static void apic_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    6969{
    7070        ipc_callid_t callid;
     
    7878        while (true) {
    7979                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                }
    8086               
    8187                switch (IPC_GET_IMETHOD(call)) {
     
    102108       
    103109        if ((sysinfo_get_value("apic", &apic) != EOK) || (!apic)) {
    104                 printf(NAME ": No APIC found\n");
     110                printf("%s: No APIC found\n", NAME);
    105111                return false;
    106112        }
     
    114120int main(int argc, char **argv)
    115121{
    116         printf(NAME ": HelenOS APIC driver\n");
     122        printf("%s: HelenOS APIC driver\n", NAME);
    117123       
    118124        if (!apic_init())
    119125                return -1;
    120126       
    121         printf(NAME ": Accepting connections\n");
     127        printf("%s: Accepting connections\n", NAME);
     128        task_retval(0);
    122129        async_manager();
    123130       
Note: See TracChangeset for help on using the changeset viewer.