Author: blueswirl Date: 2009-12-30 10:49:38 +0100 (Wed, 30 Dec 2009) New Revision: 652
Modified: trunk/openbios-devel/drivers/vga_vbe.c Log: Map VGA buffer at client accessible location (Igor Kovalenko)
Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/drivers/vga_vbe.c =================================================================== --- trunk/openbios-devel/drivers/vga_vbe.c 2009-12-29 17:36:05 UTC (rev 651) +++ trunk/openbios-devel/drivers/vga_vbe.c 2009-12-30 09:49:38 UTC (rev 652) @@ -144,7 +144,11 @@ linebytes = (width * ((depth + 7) / 8)); } #ifdef CONFIG_SPARC64 - ofmem_map_page_range(fb, fb, fb_size, 0x36); +#define VGA_VADDR 0xfe000000 + ofmem_claim_phys(fb, fb_size, 0); + ofmem_claim_virt(VGA_VADDR, fb_size, 0); + ofmem_map(fb, VGA_VADDR, fb_size, 0x76); + fb = VGA_VADDR; #endif #endif