Rev 1311 | Rev 1318 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1311 | Rev 1313 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | __address vram_lin_addr; |
72 | __address vram_lin_addr; |
73 | 73 | ||
74 | vram_lin_addr = PA2KA(PFN2ADDR(frame_alloc(vesa_frame_order(), FRAME_KA))); |
74 | vram_lin_addr = PA2KA(PFN2ADDR(frame_alloc(vesa_frame_order(), FRAME_KA))); |
75 | /* Map videoram */ |
75 | /* Map videoram */ |
76 | for (a = 0; a < ((vesa_scanline * vesa_height + PAGE_SIZE - 1) >> PAGE_WIDTH); a++) |
76 | for (a = 0; a < ((vesa_scanline * vesa_height + PAGE_SIZE - 1) >> PAGE_WIDTH); a++) |
77 | page_mapping_insert(AS_KERNEL, vram_lin_addr+a*4096, vesa_ph_addr+a*4096, PAGE_NOT_CACHEABLE); |
77 | page_mapping_insert(AS_KERNEL, vram_lin_addr + a*PAGE_SIZE, vesa_ph_addr + a*FRAME_SIZE, |
- | 78 | PAGE_NOT_CACHEABLE); |
|
78 | 79 | ||
79 | fb_init(vram_lin_addr, vesa_width, vesa_height, vesa_bpp, vesa_scanline); |
80 | fb_init(vram_lin_addr, vesa_width, vesa_height, vesa_bpp, vesa_scanline); |
80 | } |
81 | } |
81 | 82 | ||
82 | #endif |
83 | #endif |