diff options
author | Alek Du <alek.du@intel.com> | 2010-05-20 18:24:35 +0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-05-20 19:57:44 -0700 |
commit | 38eb0724824139a81342e3f676910187bc57ba9d (patch) | |
tree | b42e6484a1278b5b037e4f2b0a2cc9bbbb87db75 /core | |
parent | d3e40e850f62da372296e98db701c2dfb202bffc (diff) | |
download | syslinux-38eb0724824139a81342e3f676910187bc57ba9d.tar.gz |
syslinux: fix sector arrays
The first sector ptr is in bs->NextSector not in the array in
the patch_area. And actually the ADV sectors counting is wrong for a
while ...
Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/adv.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/adv.inc b/core/adv.inc index 2dc16339..67252619 100644 --- a/core/adv.inc +++ b/core/adv.inc @@ -77,8 +77,8 @@ adv_init: mov bx,[DataSectors] shl bx,2 mov ecx,[bsHidden] - mov eax,[bx+SectorPtrs] ; First ADV sector - mov edx,[bx+SectorPtrs+4] ; Second ADV sector + mov eax,[bx+SectorPtrs-4]; First ADV sector + mov edx,[bx+SectorPtrs] ; Second ADV sector add eax,ecx add edx,ecx mov [ADVSec0],eax |