summaryrefslogtreecommitdiff
path: root/core/diskstart.inc
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-12-20 20:53:39 -0500
committerGene Cumm <gene.cumm@gmail.com>2010-12-20 20:53:39 -0500
commit195b529d0a74879bd29947afd0d52bd16e4b079f (patch)
tree3b529246deb1d880c1c6517aa6aabc8b727492f6 /core/diskstart.inc
parent649663146b3295cc9e202afe054922c539b42614 (diff)
downloadsyslinux-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/diskstart.inc')
-rw-r--r--core/diskstart.inc7
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