summaryrefslogtreecommitdiff
path: root/ldlinux.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-02-06 15:59:49 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-02-06 15:59:49 -0800
commit9b7224f6a3419bba497b2a47a0c27f8f4893a3cc (patch)
tree68d8d86db9720834dd4b0ca32777f2955b1daed7 /ldlinux.asm
parenta86b90de0542948b61f24d7a39652d54761d50b9 (diff)
downloadsyslinux-9b7224f6a3419bba497b2a47a0c27f8f4893a3cc.tar.gz
SYSLINUX: Fix extension-detection for syslinux.
Diffstat (limited to 'ldlinux.asm')
-rw-r--r--ldlinux.asm6
1 files changed, 1 insertions, 5 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 733f2ec9..0a872c34 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -122,7 +122,6 @@ RootDir resd 1 ; Location of root directory proper
DataArea resd 1 ; Location of data area
RootDirSize resd 1 ; Root dir size in sectors
TotalSectors resd 1 ; Total number of sectors
-EndSector resd 1 ; Location of filesystem end
ClustSize resd 1 ; Bytes/cluster
ClustMask resd 1 ; Sectors/cluster - 1
CopySuper resb 1 ; Distinguish .bs versus .bss
@@ -794,9 +793,6 @@ genfatinfo:
.have_secs:
mov [TotalSectors],edx
- add edx,eax
- mov [EndSector],edx
-
mov eax,[bxResSectors]
mov [FAT],eax ; Beginning of FAT
mov edx,[bxFATsecs]
@@ -834,7 +830,7 @@ genfatinfo:
; FAT12, FAT16 or FAT28^H^H32? This computation is fscking ridiculous.
;
getfattype:
- mov eax,[EndSector]
+ mov eax,[TotalSectors]
sub eax,[DataArea]
shr eax,cl ; cl == ClustShift
mov cl,nextcluster_fat12-(nextcluster+2)