Rev 4168 | Rev 4211 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4168 | Rev 4173 | ||
---|---|---|---|
Line 47... | Line 47... | ||
47 | #include <libadt/fifo.h> |
47 | #include <libadt/fifo.h> |
48 | #include <screenbuffer.h> |
48 | #include <screenbuffer.h> |
49 | #include <sys/mman.h> |
49 | #include <sys/mman.h> |
50 | #include <stdio.h> |
50 | #include <stdio.h> |
51 | #include <sysinfo.h> |
51 | #include <sysinfo.h> |
- | 52 | #include <event.h> |
|
52 | 53 | ||
53 | #include "console.h" |
54 | #include "console.h" |
54 | #include "gcons.h" |
55 | #include "gcons.h" |
55 | 56 | ||
56 | #define MAX_KEYREQUESTS_BUFFERED 32 |
57 | #define MAX_KEYREQUESTS_BUFFERED 32 |
Line 727... | Line 728... | ||
727 | /* Register at NS */ |
728 | /* Register at NS */ |
728 | if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) |
729 | if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) |
729 | return -1; |
730 | return -1; |
730 | 731 | ||
731 | /* Receive kernel notifications */ |
732 | /* 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) |
733 | if (event_subscribe(EVENT_KCONSOLE, 0) != EOK) |
735 | // printf(NAME ": Error registering kconsole notifications\n"); |
734 | printf(NAME ": Error registering kconsole notifications\n"); |
736 | // |
735 | |
737 | // async_set_interrupt_received(interrupt_received); |
736 | async_set_interrupt_received(interrupt_received); |
738 | // } |
- | |
739 | 737 | ||
740 | // FIXME: avoid connectiong to itself, keep using klog |
738 | // FIXME: avoid connectiong to itself, keep using klog |
741 | // printf(NAME ": Accepting connections\n"); |
739 | // printf(NAME ": Accepting connections\n"); |
742 | async_manager(); |
740 | async_manager(); |
743 | 741 |