[syslinux:pathbased] bootsect.inc: change 100000h -> free_high_memory
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Feb 14 15:12:04 PST 2010
Commit-ID: dd01ec19a62c769e37416878dbe63989d2526660
Gitweb: http://syslinux.zytor.com/commit/dd01ec19a62c769e37416878dbe63989d2526660
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 14 Feb 2010 15:09:04 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 14 Feb 2010 15:09:04 -0800
bootsect.inc: change 100000h -> free_high_memory
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 at zytor.com>
---
core/bootsect.inc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/bootsect.inc b/core/bootsect.inc
index b8102cd..b4402f1 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
More information about the Syslinux-commits
mailing list