diff options
author | Gene Cumm <gene.cumm@gmail.com> | 2010-12-20 20:53:39 -0500 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2010-12-20 20:53:39 -0500 |
commit | 195b529d0a74879bd29947afd0d52bd16e4b079f (patch) | |
tree | 3b529246deb1d880c1c6517aa6aabc8b727492f6 /core | |
parent | 649663146b3295cc9e202afe054922c539b42614 (diff) | |
download | syslinux-195b529d0a74879bd29947afd0d52bd16e4b079f.tar.gz |
core/diskstart.inc: Sect1Ptr values moved to constants
This allows another program to re-use the boot sector and define
different values, once split.
Diffstat (limited to 'core')
-rw-r--r-- | core/diskstart.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/diskstart.inc b/core/diskstart.inc index 36f901be..e22aade4 100644 --- a/core/diskstart.inc +++ b/core/diskstart.inc @@ -17,6 +17,9 @@ ; Common early-bootstrap code for harddisk-based Syslinux derivatives. ; +Sect1Ptr0_VAL equ 0xdeadbeef +Sect1Ptr1_VAL equ 0xfeedface + section .init ; ; Some of the things that have to be saved very early are saved @@ -260,9 +263,9 @@ eddcheck: ; with parsing the superblock and root directory; it doesn't fit ; together with EBIOS support, unfortunately. ; - mov eax,strict dword 0xdeadbeef + mov eax,strict dword Sect1Ptr0_VAL ; 0xdeadbeef Sect1Ptr0 equ $-4 - mov edx,strict dword 0xfeedface + mov edx,strict dword Sect1Ptr0_VAL ; 0xfeedface Sect1Ptr1 equ $-4 mov bx,ldlinux_sys ; Where to load it call getonesec |