mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user