Subversion Repositories HelenOS-historic

Rev

Rev 1760 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1760 Rev 1780
Line 61... Line 61...
61
    faddr = frame_alloc(KLOG_ORDER, FRAME_ATOMIC);
61
    faddr = frame_alloc(KLOG_ORDER, FRAME_ATOMIC);
62
    if (!faddr)
62
    if (!faddr)
63
        panic("Cannot allocate page for klog");
63
        panic("Cannot allocate page for klog");
64
    klog = (char *)PA2KA(faddr);
64
    klog = (char *)PA2KA(faddr);
65
   
65
   
66
    sysinfo_set_item_val("klog.faddr", NULL, (__native)faddr);
66
    sysinfo_set_item_val("klog.faddr", NULL, (unative_t)faddr);
67
    sysinfo_set_item_val("klog.pages", NULL, 1 << KLOG_ORDER);
67
    sysinfo_set_item_val("klog.pages", NULL, 1 << KLOG_ORDER);
68
 
68
 
69
    klogsize = PAGE_SIZE << KLOG_ORDER;
69
    klogsize = PAGE_SIZE << KLOG_ORDER;
70
    klogpos = 0;
70
    klogpos = 0;
71
}
71
}