diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-24 18:38:17 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-24 18:38:17 -0800 |
commit | f9fb542ed74650f25e21c48e966b40b761c64589 (patch) | |
tree | 7b146d0160d77ef89b89d9c290a7c1adba582fe0 /core/isolinux.asm | |
parent | 11c612b178da3b07c8cb6fb4f88d0c030ab67627 (diff) | |
download | syslinux-f9fb542ed74650f25e21c48e966b40b761c64589.tar.gz |
isolinux: 7C00h -> TEXT_START
Use the TEXT_START macro instead of hard-coding 7C00h.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r-- | core/isolinux.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm index 837c619e..078f7ca7 100644 --- a/core/isolinux.asm +++ b/core/isolinux.asm @@ -411,12 +411,12 @@ found_file: ; Load the rest of the file. However, just in case there ; are still BIOSes with 64K wraparound problems, we have to ; take some extra precautions. Since the normal load - ; address (7C00h) is *not* 2K-sector-aligned, we round + ; address (TEXT_START) is *not* 2K-sector-aligned, we round ; the target address upward to a sector boundary, ; and then move the entire thing down as a unit. MaxLMA equ 384*1024 ; Reasonable limit (384K) - mov bx,((7C00h+2*SECTOR_SIZE-1) & ~(SECTOR_SIZE-1)) >> 4 + mov bx,((TEXT_START+2*SECTOR_SIZE-1) & ~(SECTOR_SIZE-1)) >> 4 mov bp,[ImageSectors] push bx ; Load segment address @@ -452,7 +452,7 @@ MaxLMA equ 384*1024 ; Reasonable limit (384K) ; Move the image into place, and also verify the ; checksum pop ax ; Load segment address - mov bx,(7C00h + SECTOR_SIZE) >> 4 + mov bx,(TEXT_START + SECTOR_SIZE) >> 4 mov ecx,[ImageDwords] mov edi,[FirstSecSum] ; First sector checksum xor si,si |