[syslinux:master] diskstart: Move DATE_STR out of sector 1

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Apr 3 16:24:44 PDT 2011


Commit-ID:  780bab7c179247f1c42610c1f70d99f996e787ec
Gitweb:     http://syslinux.zytor.com/commit/780bab7c179247f1c42610c1f70d99f996e787ec
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 3 Apr 2011 16:22:42 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 3 Apr 2011 16:23:40 -0700

diskstart: Move DATE_STR out of sector 1

Save a few bytes in sector 1 by moving DATE_STR out.  This string can
be fairly long especially when using a git tree.

Reported-by: Matt Fleming <matt.fleming at intel.com>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>


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

diff --git a/core/diskstart.inc b/core/diskstart.inc
index f31b722..967c8a7 100644
--- a/core/diskstart.inc
+++ b/core/diskstart.inc
@@ -29,7 +29,7 @@ Sect1Ptr1_VAL	equ 0xfeedface
 LDLINUX_SYS	equ ($-$$)+TEXT_START
 ldlinux_sys:
 
-syslinux_banner	db CR, LF, MY_NAME, ' ', VERSION_STR, ' ', DATE_STR, ' ', 0
+early_banner	db CR, LF, MY_NAME, ' ', VERSION_STR, ' ', 0
 		db CR, LF, 1Ah	; EOF if we "type" this in DOS
 
 		alignz 8
@@ -98,7 +98,7 @@ ldlinux_ent:
 ;
 ; Tell the user we got this far
 ;
-		mov si,syslinux_banner
+		mov si,early_banner
 		call writestr_early
 
 ;
@@ -446,6 +446,9 @@ all_read:
 ; Let the user (and programmer!) know we got this far.  This used to be
 ; in Sector 1, but makes a lot more sense here.
 ;
+		mov si,late_banner
+		call writestr_early
+
 		mov si,copyright_str
 		call writestr_early
 
@@ -487,4 +490,11 @@ expand_super:
 		section .bss16
 SuperInfo	resq 16			; The first 16 bytes expanded 8 times
 
+;
+; Banner information not needed in sector 1
+;
+		section .data16
+syslinux_banner	db CR, LF, MY_NAME, ' ', VERSION_STR, ' '
+late_banner	db DATE_STR, ' ', 0
+
 		section .text16



More information about the Syslinux-commits mailing list