Changeset 8820544 in mainline for uspace/srv/taskmon/taskmon.c


Ignore:
Timestamp:
2014-08-16T00:02:04Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
35b8bfe, 8cd680c
Parents:
83f29e0
Message:

support for kernel notification multiplexing in the async framework

  • rename SYS_EVENT_* and SYS_IRQ_* syscalls to unify the terminology
  • add SYS_IPC_EVENT_UNSUBSCRIBE
  • remove IRQ handler multiplexing from DDF, the generic mechanism replaces it (unfortunatelly the order of arguments used by interrupt_handler_t needs to be permutated to align with the async framework conventions)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskmon/taskmon.c

    r83f29e0 r8820544  
    4040#include <sys/typefmt.h>
    4141#include <task.h>
    42 #include <event.h>
    4342#include <ipc/corecfg.h>
    4443#include <loc.h>
     
    5352static void corecfg_client_conn(ipc_callid_t , ipc_call_t *, void *);
    5453
    55 static void fault_event(ipc_callid_t callid, ipc_call_t *call)
     54static void fault_event(ipc_callid_t callid, ipc_call_t *call, void *arg)
    5655{
    5756        const char *fname;
     
    143142        write_core_files = false;
    144143#endif
    145         if (event_subscribe(EVENT_FAULT, 0) != EOK) {
     144        if (async_event_subscribe(EVENT_FAULT, fault_event, NULL) != EOK) {
    146145                printf("%s: Error registering fault notifications.\n", NAME);
    147146                return -1;
     
    165164        }
    166165       
    167         async_set_interrupt_received(fault_event);
    168166        task_retval(0);
    169167        async_manager();
Note: See TracChangeset for help on using the changeset viewer.