projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe628ff
)
comboot.inc: use the correct upper limit
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 27 Feb 2008 21:02:03 +0000
(13:02 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 27 Feb 2008 21:02:03 +0000
(13:02 -0800)
The exact upper limit is 65536-256-2 = 65278 = 0xFEFE bytes.
comboot.inc
patch
|
blob
|
history
diff --git
a/comboot.inc
b/comboot.inc
index
3a3c306
..
99a4115
100644
(file)
--- a/
comboot.inc
+++ b/
comboot.inc
@@
-128,8
+128,8
@@
is_comboot_image:
mov cx,10000h >> SECTOR_SHIFT
; Absolute maximum # of sectors
call getfssec
- cmp ecx,
0FF00h
; Maximum size
- ja
e
comboot_too_large
+ cmp ecx,
65536-256-2
; Maximum size
+ ja comboot_too_large
; And invoke the program...
mov ax,es