summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-02-06 14:21:36 -0800
committerH. Peter Anvin <hpa@zytor.com>2011-02-06 14:21:36 -0800
commit5c9308928dad6d68a3a46deab01cfe2177278d60 (patch)
tree43fedac2990c2a8ab0ca4016130bd778cded0c4f
parente0494be7b038a05dfe1093d2c1abde3599d6270f (diff)
downloadsyslinux-5c9308928dad6d68a3a46deab01cfe2177278d60.tar.gz
diskboot: correct the patching of the floppy tablesyslinux-4.04-pre7
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 <jlborries@online.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/diskboot.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/diskboot.inc b/core/diskboot.inc
index 574db456..7c020667 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