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:
Stefan Reinauer
2006-06-06 22:23:04 +00:00
parent 9f386f64bd
commit ebc74de556
7 changed files with 164 additions and 60 deletions

View File

@@ -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();