[syslinux:master] core/diskstart.inc: Sect1Ptr values moved to constants

syslinux-bot for Gene Cumm gene.cumm at gmail.com
Wed Dec 22 21:21:30 PST 2010


Commit-ID:  195b529d0a74879bd29947afd0d52bd16e4b079f
Gitweb:     http://syslinux.zytor.com/commit/195b529d0a74879bd29947afd0d52bd16e4b079f
Author:     Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Mon, 20 Dec 2010 20:53:39 -0500
Committer:  Gene Cumm <gene.cumm at gmail.com>
CommitDate: Mon, 20 Dec 2010 20:53:39 -0500

core/diskstart.inc: Sect1Ptr values moved to constants

This allows another program to re-use the boot sector and define
different values, once split.


---
 core/diskstart.inc |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/core/diskstart.inc b/core/diskstart.inc
index 36f901b..e22aade 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



More information about the Syslinux-commits mailing list