Subversion Repositories HelenOS

Rev

Rev 1875 | Rev 1888 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1875 Rev 1886
Line 489... Line 489...
489
            screen.scr2rgb = byte4_rgb;
489
        screen.scr2rgb = byte4_rgb;
490
            screen.pixelbytes = 4;
490
        screen.pixelbytes = 4;
491
            break;
491
        break;
492
    }
492
    }
493
 
493
 
494
       
-
 
495
    screen.fbaddress = (unsigned char *) addr;
494
    screen.fbaddress = (unsigned char *) addr;
496
    screen.xres = xres;
495
    screen.xres = xres;
497
    screen.yres = yres;
496
    screen.yres = yres;
498
    screen.scanline = scan;
497
    screen.scanline = scan;
499
    screen.invert_colors = invert_colors;
498
    screen.invert_colors = invert_colors;
Line 1246... Line 1245...
1246
 
1245
 
1247
    asz = fb_scanline*fb_height;
1246
    asz = fb_scanline*fb_height;
1248
    fb_addr = as_get_mappable_page(asz);
1247
    fb_addr = as_get_mappable_page(asz);
1249
   
1248
   
1250
    map_physmem(fb_ph_addr, fb_addr, ALIGN_UP(asz,PAGE_SIZE) >>PAGE_WIDTH,
1249
    map_physmem(fb_ph_addr, fb_addr, ALIGN_UP(asz,PAGE_SIZE) >>PAGE_WIDTH,
1251
            AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE);
1250
            AS_AREA_READ | AS_AREA_WRITE);
1252
   
1251
 
1253
    screen_init(fb_addr, fb_width, fb_height, fb_bpp, fb_scanline, fb_bpp_align, fb_invert_colors);
1252
    screen_init(fb_addr, fb_width, fb_height, fb_bpp, fb_scanline, fb_bpp_align, fb_invert_colors);
1254
 
-
 
1255
    return 0;
1253
    return 0;
1256
}
1254
}
1257
 
1255
 
1258
 
1256
 
1259
/**
1257
/**