Subversion Repositories HelenOS

Rev

Rev 4488 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4488 Rev 4495
Line 69... Line 69...
69
{
69
{
70
    size_t klog_pages = sysinfo_value("klog.pages");
70
    size_t klog_pages = sysinfo_value("klog.pages");
71
    size_t klog_size = klog_pages * PAGE_SIZE;
71
    size_t klog_size = klog_pages * PAGE_SIZE;
72
    klog_length = klog_size / sizeof(wchar_t);
72
    klog_length = klog_size / sizeof(wchar_t);
73
   
73
   
74
    klog = (wchar_t *) as_get_mappable_page(klog_pages);
74
    klog = (wchar_t *) as_get_mappable_page(klog_size);
75
    if (klog == NULL) {
75
    if (klog == NULL) {
76
        printf(NAME ": Error allocating memory area\n");
76
        printf(NAME ": Error allocating memory area\n");
77
        return -1;
77
        return -1;
78
    }
78
    }
79
   
79