From 5c9308928dad6d68a3a46deab01cfe2177278d60 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 6 Feb 2011 14:21:36 -0800 Subject: [PATCH] diskboot: correct the patching of the floppy table The floppy table patching was somehow messed up when converting to GPT. The proper offset of FloppyTable at the point we patch is [di-12] and we use offset +4 inside that field. Reported-by: Juergen Signed-off-by: H. Peter Anvin --- core/diskboot.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/diskboot.inc b/core/diskboot.inc index 574db45..7c02066 100644 --- a/core/diskboot.inc +++ b/core/diskboot.inc @@ -162,7 +162,7 @@ floppy: mov [bx+2],ax ; Segment 0 fs rep movsw ; Faster to move words mov cl,[bsSecPerTrack] ; Patch the sector count - mov [di-76+8],cl + mov [di-12+4],cl push ax ; Partition offset == 0 push ax -- 2.7.4