aboutsummaryrefslogtreecommitdiffstats
path: root/core/isolinux.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-06-01 14:47:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-06-01 14:47:45 -0700
commit7b5d546fdbf1d330ecc18d4c5b5d15db7cb5c783 (patch)
tree0545f8454ce6ba9215c4f322d8ffad401da367ec /core/isolinux.asm
parentd24dee1326c10b0488fe0bdaccb819854a2325c8 (diff)
downloadsyslinux-7b5d546fdbf1d330ecc18d4c5b5d15db7cb5c783.tar.gz
prepcore: error out if the compressed image is too large to load
Export, from each loader stage, the symbol MaxLMA which indicates to prepcore how big the image is allowed to be. Change prepcore to enforce this limit and to error out otherwise. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r--core/isolinux.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm
index 37c14744..b2c9c986 100644
--- a/core/isolinux.asm
+++ b/core/isolinux.asm
@@ -431,6 +431,8 @@ found_file:
; address (7C00h) is *not* 2K-sector-aligned, the safest
; way to deal with this is to load into the xfer_buf_seg
; and then copy the data in place.
+MaxLMA equ xfer_buf_seg << 4
+
mov bx,(7C00h+SECTOR_SIZE) >> 4
mov bp,[ImageSectors]