[syslinux:master] diskboot: correct the patching of the floppy table
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Feb 6 14:24:05 PST 2011
Commit-ID: 5c9308928dad6d68a3a46deab01cfe2177278d60
Gitweb: http://syslinux.zytor.com/commit/5c9308928dad6d68a3a46deab01cfe2177278d60
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 6 Feb 2011 14:21:36 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 6 Feb 2011 14:21:36 -0800
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 <jlborries at online.de>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/diskboot.inc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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
More information about the Syslinux-commits
mailing list