Changeset 05641a9e in mainline for uspace/srv/console/console.c


Ignore:
Timestamp:
2009-03-23T21:46:40Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c3ebc47
Parents:
a5e5030
Message:

Revive kernel notifications.

File:
1 edited

Legend:

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

    ra5e5030 r05641a9e  
    5050#include <stdio.h>
    5151#include <sysinfo.h>
     52#include <event.h>
    5253
    5354#include "console.h"
     
    730731       
    731732        /* Receive kernel notifications */
    732 //      if (sysinfo_value("kconsole.present")) {
    733 //              int inr = sysinfo_value("kconsole.inr");
    734 //              if (ipc_register_irq(inr, device_assign_devno(), 0, NULL) != EOK)
    735 //                      printf(NAME ": Error registering kconsole notifications\n");
    736 //             
    737 //              async_set_interrupt_received(interrupt_received);
    738 //      }
     733        if (event_subscribe(EVENT_KCONSOLE, 0) != EOK)
     734                printf(NAME ": Error registering kconsole notifications\n");
     735               
     736        async_set_interrupt_received(interrupt_received);
    739737       
    740738        // FIXME: avoid connectiong to itself, keep using klog
Note: See TracChangeset for help on using the changeset viewer.