WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix EDD pointer in int 13h, fn 48h BIOS call return

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix EDD pointer in int 13h, fn 48h BIOS call return buffer
From: "Bruce Rogers" <brogers@xxxxxxxxxx>
Date: Fri, 07 Mar 2008 12:26:16 -0700
Delivery-date: Fri, 07 Mar 2008 11:26:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.

Signed-off-by: Bruce Rogers <brogers@xxxxxxxxxx>

diff -r 59b8768d0d0d tools/firmware/rombios/rombios.c
--- a/tools/firmware/rombios/rombios.c  Wed Mar 05 11:18:25 2008 +0000
+++ b/tools/firmware/rombios/rombios.c  Fri Mar 07 05:36:51 2008 -0700
@@ -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;


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix EDD pointer in int 13h, fn 48h BIOS call return buffer, Bruce Rogers <=