Subversion Repositories HelenOS

Rev

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

Rev 4342 Rev 4343
Line 1669... Line 1669...
1669
    unsigned int fb_visual = sysinfo_value("fb.visual");
1669
    unsigned int fb_visual = sysinfo_value("fb.visual");
1670
   
1670
   
1671
    unsigned int fbsize = fb_scanline * fb_height;
1671
    unsigned int fbsize = fb_scanline * fb_height;
1672
    void *fb_addr = as_get_mappable_page(fbsize);
1672
    void *fb_addr = as_get_mappable_page(fbsize);
1673
   
1673
   
1674
    physmem_map(fb_ph_addr + fb_offset, fb_addr,
1674
    if (physmem_map(fb_ph_addr + fb_offset, fb_addr,
1675
        ALIGN_UP(fbsize, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE);
1675
        ALIGN_UP(fbsize, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE) != 0)
-
 
1676
        return -1;
1676
   
1677
   
1677
    if (screen_init(fb_addr, fb_width, fb_height, fb_scanline, fb_visual))
1678
    if (screen_init(fb_addr, fb_width, fb_height, fb_scanline, fb_visual))
1678
        return 0;
1679
        return 0;
1679
   
1680
   
1680
    return -1;
1681
    return -1;