mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
openbios.patch-22.bz2 from blueswirl
git-svn-id: svn://coreboot.org/openbios/openbios-devel@49 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -153,17 +153,7 @@ static void video_cls(void)
|
||||
|
||||
void tcx_init(unsigned long base)
|
||||
{
|
||||
#if 1
|
||||
unsigned int i;
|
||||
|
||||
// Create 1:1 mapping for video memory
|
||||
for (i = 0; i < VMEM_SIZE; i += 4096) {
|
||||
map_page(base + VMEM_BASE + i, base + VMEM_BASE + i, 0);
|
||||
}
|
||||
vmem = (char *)base + VMEM_BASE;
|
||||
#else
|
||||
vmem = map_io(base + VMEM_BASE, VMEM_SIZE);
|
||||
#endif
|
||||
dac = map_io(base + DAC_BASE, DAC_SIZE);
|
||||
|
||||
console_init();
|
||||
|
||||
Reference in New Issue
Block a user