]> xenbits.xensource.com Git - seabios.git/commitdiff
ati-vga: fix ati_read()
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jun 2019 10:09:31 +0000 (12:09 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jun 2019 12:35:38 +0000 (14:35 +0200)
Cut & paste bug probably.  Had no bad effect so far because the code
doesn't read registers larger than 0x100.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
vgasrc/atiext.c

index b3975226c47852c80ec4278b9a955d95559f6e3e..a24b980638a9562daaa37fe236b4de89c152503b 100644 (file)
@@ -117,7 +117,7 @@ static inline u32 ati_read(u32 reg)
         val = inl(io_addr + reg);
     } else {
         outl(reg, io_addr + MM_INDEX);
-        reg = inl(io_addr + MM_DATA);
+        val = inl(io_addr + MM_DATA);
     }
     return val;
 }