Subversion Repositories HelenOS

Rev

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

Rev 3906 Rev 3908
Line 124... Line 124...
124
    ASSERT(KLOG_SIZE % FRAME_SIZE == 0);
124
    ASSERT(KLOG_SIZE % FRAME_SIZE == 0);
125
 
125
 
126
    devno_t devno = device_assign_devno();
126
    devno_t devno = device_assign_devno();
127
   
127
   
128
    klog_parea.pbase = (uintptr_t) faddr;
128
    klog_parea.pbase = (uintptr_t) faddr;
129
    klog_parea.vbase = (uintptr_t) klog;
-
 
130
    klog_parea.frames = SIZE2FRAMES(KLOG_SIZE);
129
    klog_parea.frames = SIZE2FRAMES(KLOG_SIZE);
131
    klog_parea.cacheable = true;
-
 
132
    ddi_parea_register(&klog_parea);
130
    ddi_parea_register(&klog_parea);
133
 
131
 
134
    sysinfo_set_item_val("klog.faddr", NULL, (unative_t) faddr);
132
    sysinfo_set_item_val("klog.faddr", NULL, (unative_t) faddr);
135
    sysinfo_set_item_val("klog.pages", NULL, SIZE2FRAMES(KLOG_SIZE));
133
    sysinfo_set_item_val("klog.pages", NULL, SIZE2FRAMES(KLOG_SIZE));
136
    sysinfo_set_item_val("klog.devno", NULL, devno);
134
    sysinfo_set_item_val("klog.devno", NULL, devno);