Rev 1371 | Rev 1382 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1371 | Rev 1376 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | #include <genarch/fb/fb.h> |
30 | #include <genarch/fb/fb.h> |
| 31 | #include <console/chardev.h> |
31 | #include <console/chardev.h> |
| 32 | #include <console/console.h> |
32 | #include <console/console.h> |
| 33 | #include <sysinfo/sysinfo.h> |
33 | #include <sysinfo/sysinfo.h> |
| 34 | #include <mm/slab.h> |
34 | #include <mm/slab.h> |
| 35 | #include <mm/as.h> |
- | |
| 36 | #include <bitops.h> |
35 | #include <bitops.h> |
| 37 | #include <align.h> |
36 | #include <align.h> |
| 38 | #include <panic.h> |
37 | #include <panic.h> |
| 39 | #include <memstr.h> |
38 | #include <memstr.h> |
| 40 | #include <config.h> |
39 | #include <config.h> |
| Line 358... | Line 357... | ||
| 358 | fborder = (fnzb32(fbsize - 1) + 1) - FRAME_WIDTH; |
357 | fborder = (fnzb32(fbsize - 1) + 1) - FRAME_WIDTH; |
| 359 | 358 | ||
| 360 | /* Map the framebuffer */ |
359 | /* Map the framebuffer */ |
| 361 | fbaddress = (__u8 *) PA2KA(PFN2ADDR(frame_alloc(fborder, FRAME_KA))); |
360 | fbaddress = (__u8 *) PA2KA(PFN2ADDR(frame_alloc(fborder, FRAME_KA))); |
| 362 | 361 | ||
| 363 | pfn_t i; |
- | |
| 364 | for (i = 0; i < ADDR2PFN(ALIGN_UP(fbsize, PAGE_SIZE)); i++) |
- | |
| 365 | page_mapping_insert(AS_KERNEL, (__address) fbaddress + PFN2ADDR(i), addr + PFN2ADDR(i), PAGE_NOT_CACHEABLE); |
362 | fb_map_arch((__address) fbaddress, (__address) addr, fbsize); |
| 366 | 363 | ||
| 367 | xres = x; |
364 | xres = x; |
| 368 | yres = y; |
365 | yres = y; |
| 369 | bitspp = bpp; |
366 | bitspp = bpp; |
| 370 | scanline = scan; |
367 | scanline = scan; |