Rev 4156 | Rev 4296 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4156 | Rev 4201 | ||
|---|---|---|---|
| Line 40... | Line 40... | ||
| 40 | #include <ipc/services.h> |
40 | #include <ipc/services.h> |
| 41 | #include <as.h> |
41 | #include <as.h> |
| 42 | #include <sysinfo.h> |
42 | #include <sysinfo.h> |
| 43 | #include <io/stream.h> |
43 | #include <io/stream.h> |
| 44 | #include <console.h> |
44 | #include <console.h> |
| - | 45 | #include <event.h> |
|
| 45 | #include <errno.h> |
46 | #include <errno.h> |
| 46 | 47 | ||
| 47 | #define NAME "klog" |
48 | #define NAME "klog" |
| 48 | 49 | ||
| 49 | #define KLOG_SIZE PAGE_SIZE |
50 | #define KLOG_SIZE PAGE_SIZE |
| Line 80... | Line 81... | ||
| 80 | if (res != EOK) { |
81 | if (res != EOK) { |
| 81 | printf(NAME ": Error initializing memory area\n"); |
82 | printf(NAME ": Error initializing memory area\n"); |
| 82 | return -1; |
83 | return -1; |
| 83 | } |
84 | } |
| 84 | 85 | ||
| 85 | // int inr = sysinfo_value("klog.inr"); |
- | |
| 86 | // if (ipc_register_irq(inr, devno, 0, NULL) != EOK) { |
86 | if (event_subscribe(EVENT_KLOG, 0) != EOK) { |
| 87 | // printf(NAME ": Error registering klog notifications\n"); |
87 | printf(NAME ": Error registering klog notifications\n"); |
| 88 | // return -1; |
88 | return -1; |
| 89 | // } |
89 | } |
| 90 | 90 | ||
| 91 | async_set_interrupt_received(interrupt_received); |
91 | async_set_interrupt_received(interrupt_received); |
| 92 | klog_update(); |
92 | klog_update(); |
| 93 | async_manager(); |
93 | async_manager(); |
| 94 | 94 | ||