summaryrefslogtreecommitdiff
path: root/isolinux.asm
diff options
context:
space:
mode:
authorhpa <hpa>2002-10-24 05:46:28 +0000
committerhpa <hpa>2002-10-24 05:46:28 +0000
commitd684e72385132bd87e46e5a8fdf591da9ee8ba2c (patch)
tree9a252be668047a8d5eeae7af2119a7608963f178 /isolinux.asm
parentde9e52085ecde8375bbc1e4859f086ec2bb28f5c (diff)
downloadsyslinux-d684e72385132bd87e46e5a8fdf591da9ee8ba2c.tar.gz
Fix bug which causes ISOLINUX to choke on initrds > 128 MB.
Diffstat (limited to 'isolinux.asm')
-rw-r--r--isolinux.asm7
1 files changed, 4 insertions, 3 deletions
diff --git a/isolinux.asm b/isolinux.asm
index 7966f9ea..9e41add4 100644
--- a/isolinux.asm
+++ b/isolinux.asm
@@ -1424,7 +1424,7 @@ unmangle_name: call strcpy
; On entry:
; ES:BX -> Buffer
; SI -> File pointer
-; CX -> Cluster count; 0FFFFh = until end of file
+; CX -> Cluster count
; On exit:
; SI -> File pointer (or 0 on EOF)
; CF = 1 -> Hit EOF
@@ -1436,9 +1436,10 @@ getfssec:
push cs
pop ds ; DS <- CS
- cmp cx,[si+file_left]
+ movzx ecx,cx
+ cmp ecx,[si+file_left]
jna .ok_size
- mov cx,[si+file_left]
+ mov ecx,[si+file_left]
.ok_size:
mov bp,cx