Subversion Repositories HelenOS

Rev

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

Rev 4341 Rev 4343
Line 99... Line 99...
99
 *
99
 *
100
 * This is not a real IRQ, so we always decline.
100
 * This is not a real IRQ, so we always decline.
101
 *
101
 *
102
 * @return Always returns IRQ_DECLINE.
102
 * @return Always returns IRQ_DECLINE.
103
 */
103
 */
104
static irq_ownership_t klog_claim(void)
104
static irq_ownership_t klog_claim(void *instance)
105
{
105
{
106
    return IRQ_DECLINE;
106
    return IRQ_DECLINE;
107
}
107
}
108
 
108
 
109
/** Standard input character device */
109
/** Standard input character device */
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);