Map VGA buffer at client accessible location (Igor Kovalenko)

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@652 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-12-30 09:49:38 +00:00
parent c0b4bb8002
commit e979d432cc

View File

@@ -144,7 +144,11 @@ void vga_vbe_init(const char *path, unsigned long fb, uint32_t fb_size,
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