Fix apparent bug in pci bios handle_1ab10e function.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 19 Jan 2009 17:53:10 +0000 (12:53 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 19 Jan 2009 17:53:10 +0000 (12:53 -0500)
The PIR entry copy was copying the header instead of the slots.

src/pcibios.c

index 0dafcf11de4865c790834313db14b00bad9d69cb..d156518a3c0464f2f785373fb50dfa3abe23fcf7 100644 (file)
@@ -149,7 +149,7 @@ handle_1ab10e(struct bregs *regs)
 
     // Memcpy pir table slots to dest buffer.
     memcpy_far(MAKE_FARPTR(destseg, d)
-               , MAKE_FARPTR(SEG_BIOS, pirtable_g)
+               , MAKE_FARPTR(SEG_BIOS, pirtable_g->slots)
                , pirsize);
 
     // XXX - bochs bios sets bx to (1 << 9) | (1 << 11)