summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/vgas3.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-01-06 23:39:02 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2013-01-06 23:39:02 +0100
commit0d5c57a1325410fd6f1362facc45802afb953be3 (patch)
tree5aed3153af9d4b96edfd62447922cb368a7ad404 /sys/src/9/pc/vgas3.c
parent5ed845f7e9092295dd5dea3ef0740da35737d872 (diff)
vga: dont confuse io bar with mem bar in vgas3 and vgavesa
harmless bug. just make sure we loop over the memory bars only and skip the io bars.
Diffstat (limited to 'sys/src/9/pc/vgas3.c')
-rw-r--r--sys/src/9/pc/vgas3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/pc/vgas3.c b/sys/src/9/pc/vgas3.c
index bbf034560..ed203af65 100644
--- a/sys/src/9/pc/vgas3.c
+++ b/sys/src/9/pc/vgas3.c
@@ -120,6 +120,7 @@ s3linear(VGAscr* scr, int, int)
* much space they would need in the first design.
*/
for(j=0; j<nelem(p->mem); j++){
+ if((p->mem[j].bar&1) == 0)
if((p->mem[j].bar&~0x0F) != scr->paddr)
if(p->mem[j].size==512*1024 || p->mem[j].size==16*1024*1024){
mmiobase = p->mem[j].bar & ~0x0F;