Rev 4253 | Rev 4488 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4253 | Rev 4260 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | 72 | ||
73 | count_t klog_pages = sysinfo_value("klog.pages"); |
73 | count_t klog_pages = sysinfo_value("klog.pages"); |
74 | size_t klog_size = klog_pages * PAGE_SIZE; |
74 | size_t klog_size = klog_pages * PAGE_SIZE; |
75 | klog_length = klog_size / sizeof(wchar_t); |
75 | klog_length = klog_size / sizeof(wchar_t); |
76 | 76 | ||
77 | klog = (char *) as_get_mappable_page(klog_pages); |
77 | klog = (wchar_t *) as_get_mappable_page(klog_pages); |
78 | if (klog == NULL) { |
78 | if (klog == NULL) { |
79 | printf(NAME ": Error allocating memory area\n"); |
79 | printf(NAME ": Error allocating memory area\n"); |
80 | return -1; |
80 | return -1; |
81 | } |
81 | } |
82 | 82 |