Subversion Repositories HelenOS-historic

Rev

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

Rev 1705 Rev 1760
Line 56... Line 56...
56
 */
56
 */
57
void klog_init(void)
57
void klog_init(void)
58
{
58
{
59
    void *faddr;
59
    void *faddr;
60
 
60
 
61
    faddr = (void *)PFN2ADDR(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, (__native)faddr);