wok diff ipxe/stuff/bootloader.S @ rev 24942

BootProg: clear cmdline
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 20 15:10:50 2022 +0000 (2022-04-20)
parents c4968381aed9
children e197a1539e2e
line diff
     1.1 --- a/ipxe/stuff/bootloader.S	Thu May 06 12:50:46 2021 +0000
     1.2 +++ b/ipxe/stuff/bootloader.S	Wed Apr 20 15:10:50 2022 +0000
     1.3 @@ -20,6 +20,7 @@
     1.4  /* some extra features */
     1.5  #define EXE_SUPPORT		real mode dos .exe file support	+208/264
     1.6  #define  CMDLINE		dos kernel cmdline support	+45
     1.7 +#define  BUGGY_CMDLINE		verify cmdline length		+2
     1.8  #define  VCPI			VCPI 4.0 support (386+)		+109
     1.9  #define  SHUTDOWNDOS		shutdown DOS services		+29
    1.10  
    1.11 @@ -28,7 +29,7 @@
    1.12  //#define FLOPPY_HAS_2_SIDES	hardcoded heads count to 2	-15
    1.13  //#define NO_CMDLINE_SHRINK	remove heading spaces ?		-6-21
    1.14  //#define  NO_CMDLINE_FILE	remove @cmdline file support ?	-21
    1.15 -//#define NO_DOTS		show progression dots ?		-5
    1.16 +#define NO_DOTS			show progression dots ?		-5
    1.17  #ifndef BZIMAGE
    1.18  //#define TINY_ZIMAGE		system < 64Kb ?			-11
    1.19  //#define NO_MINSETUP		default setup (dos only) ?	-4
    1.20 @@ -356,7 +357,12 @@
    1.21  	lodsb
    1.22  	cbw
    1.23  	xchgw	%ax, %cx
    1.24 +#ifdef BUGGY_CMDLINE
    1.25 +	test	%cl, %cl		# C=O=0, set S & Z
    1.26 +	jng	nocmdline		# Z == 1 or O != S ?
    1.27 +#else
    1.28  	jcxz	nocmdline
    1.29 +#endif
    1.30  # if defined(BZIMAGE) && BZIMAGE >= 0x202
    1.31  	movw	$INITSEG/16+stacktop/256, EXEADRS(cmd_line_ptr+1)
    1.32  # else