Skip to contentSkip to conversation

Fix EDD pointer in int 13h, fn 48h BIOS call return buffer

PATCH New Bruce Rogers 1 participant 1 message Mar 7, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix EDD pointer in int 13h, fn 48h BIOS call return buffer

I ran into this when I was reviewing what was outstanding to get NetWare to run fully virtualized.

The BIOS emulator code has the segment and offset backward in the returned buffer for the int 13h, fn 48h BIOS call.

BTW: This is fixed in current Bochs emulator upstream code.

tools/firmware/rombios/rombios.c Fri Mar 07 05:36:51 2008 -0700 renamed from tools/firmware/rombios/rombios.c Wed Mar 05 11:18:25 2008 +0000 +1 -1
diff -r 59b8768d0d0d tools/firmware/rombios/rombios.c
@@ -779,8 +779,8 @@ typedef struct {
     Bit32u  sector_count1;
     Bit32u  sector_count2;
     Bit16u  blksize;
+    Bit16u  dpte_offset;
     Bit16u  dpte_segment;
-    Bit16u  dpte_offset;
     Bit16u  key;
     Bit8u   dpi_length;
     Bit8u   reserved1;