Subversion Repositories HelenOS

Rev

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

Rev 3425 Rev 4377
Line 86... Line 86...
86
    if ((uint64_t) hsize + dsize > size)
86
    if ((uint64_t) hsize + dsize > size)
87
        dsize = size - hsize;
87
        dsize = size - hsize;
88
   
88
   
89
    rd_parea.pbase = ALIGN_DOWN((uintptr_t) KA2PA((void *) header + hsize),
89
    rd_parea.pbase = ALIGN_DOWN((uintptr_t) KA2PA((void *) header + hsize),
90
        FRAME_SIZE);
90
        FRAME_SIZE);
91
    rd_parea.vbase = (uintptr_t) ((void *) header + hsize);
-
 
92
    rd_parea.frames = SIZE2FRAMES(dsize);
91
    rd_parea.frames = SIZE2FRAMES(dsize);
93
    rd_parea.cacheable = true;
-
 
94
    ddi_parea_register(&rd_parea);
92
    ddi_parea_register(&rd_parea);
95
 
93
 
96
    sysinfo_set_item_val("rd", NULL, true);
94
    sysinfo_set_item_val("rd", NULL, true);
97
    sysinfo_set_item_val("rd.header_size", NULL, hsize);   
95
    sysinfo_set_item_val("rd.header_size", NULL, hsize);   
98
    sysinfo_set_item_val("rd.size", NULL, dsize);
96
    sysinfo_set_item_val("rd.size", NULL, dsize);