]> xenbits.xensource.com Git - seabios.git/commitdiff
Provide correct dpte pointer to indicate absence of dpte
authorBruce Rogers <brogers@suse.com>
Thu, 25 Oct 2012 19:48:16 +0000 (13:48 -0600)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 28 Oct 2012 01:26:48 +0000 (21:26 -0400)
The Pheonix EDD v3.0 spec says that if no dpte is present,
the dpte pointer should contain ffffh:ffffh, not the 0h:0h
which is currently used. This bit me when using NetWare as
a KVM guest.

Signed-off-by: Bruce Rogers <brogers@suse.com>
src/disk.c

index 8e1d3ec568386452ac1b0ca3af36474b8c95b450..0291fe3e09d91c29dac897fd1355bf08312e528b 100644 (file)
@@ -615,7 +615,7 @@ disk_1348(struct bregs *regs, struct drive_s *drive_g)
         u8 sum = checksum_far(SEG_LOW, &DefaultDPTE, 15);
         SET_LOW(DefaultDPTE.checksum, -sum);
     } else {
-        SET_FARVAR(seg, param_far->dpte.segoff, 0);
+        SET_FARVAR(seg, param_far->dpte.segoff, 0xffffffff);
         bdf = GET_GLOBAL(drive_g->cntl_id);
     }