diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-14 15:09:04 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-14 15:09:04 -0800 |
commit | dd01ec19a62c769e37416878dbe63989d2526660 (patch) | |
tree | 9bcf8fc9807e55114d109c1b2de0d29618128caf | |
parent | bb18754c78f2e39331d04b02580695e65db83bb5 (diff) | |
download | syslinux-dd01ec19a62c769e37416878dbe63989d2526660.tar.gz |
bootsect.inc: change 100000h -> free_high_memorysyslinux-4.00-pre21
We can't load stuff at 100000h... that will overwrite the PM code.
That is what free_high_memory is for.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | core/bootsect.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/bootsect.inc b/core/bootsect.inc index b8102cd5..b4402f1c 100644 --- a/core/bootsect.inc +++ b/core/bootsect.inc @@ -36,13 +36,13 @@ SuperSize equ $+1 push word superblock_len_fat16 %endif load_bootsec: - mov edi,100000h + mov edi,free_high_memory mov [trackbuf+4],edi ; Copy from this address xor dx,dx ; No padding mov bx,abort_check ; Don't print dots, but allow abort call load_high - sub edi,100000h + sub edi,free_high_memory mov [trackbuf+8],edi ; Save length mov eax,7C00h ; Entry point @@ -54,7 +54,7 @@ load_bootsec: ; For a BSS boot sector we have to patch. mov esi,superblock - mov edi,100000h+(superblock-bootsec) + mov edi,free_high_memory+(superblock-bootsec) call bcopy %endif push eax ; Save entry point |