Rev 4055 | Rev 4201 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4055 | Rev 4156 | ||
|---|---|---|---|
| Line 39... | Line 39... | ||
| 39 | #include <async.h> |
39 | #include <async.h> |
| 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 <errno.h> |
45 | #include <errno.h> |
| 45 | 46 | ||
| 46 | #define NAME "klog" |
47 | #define NAME "klog" |
| 47 | 48 | ||
| 48 | #define KLOG_SIZE PAGE_SIZE |
49 | #define KLOG_SIZE PAGE_SIZE |
| Line 79... | Line 80... | ||
| 79 | if (res != EOK) { |
80 | if (res != EOK) { |
| 80 | printf(NAME ": Error initializing memory area\n"); |
81 | printf(NAME ": Error initializing memory area\n"); |
| 81 | return -1; |
82 | return -1; |
| 82 | } |
83 | } |
| 83 | 84 | ||
| 84 | int devno = sysinfo_value("klog.devno"); |
- | |
| 85 | int inr = sysinfo_value("klog.inr"); |
85 | // int inr = sysinfo_value("klog.inr"); |
| 86 | if (ipc_register_irq(inr, devno, 0, NULL) != EOK) { |
86 | // if (ipc_register_irq(inr, devno, 0, NULL) != 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 | ||