wok-stable rev 1122

gpxe: accept empty cmdline
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 21 14:45:55 2008 +0000 (2008-07-21)
parents c135cd14d789
children 59bc9f9263f5
files gpxe/stuff/cmdline.u
line diff
     1.1 --- a/gpxe/stuff/cmdline.u	Mon Jul 21 14:22:01 2008 +0000
     1.2 +++ b/gpxe/stuff/cmdline.u	Mon Jul 21 14:45:55 2008 +0000
     1.3 @@ -30,7 +30,7 @@
     1.4   	/* Calculated lcall to _start with %cs:0000 = image start */
     1.5   	lret
     1.6   
     1.7 -@@ -448,7 +449,23 @@
     1.8 +@@ -448,7 +449,25 @@
     1.9   /*
    1.10   	We're now at the beginning of the kernel proper.
    1.11    */
    1.12 @@ -42,6 +42,8 @@
    1.13  +	jne	run_etherboot
    1.14  +	lodsw
    1.15  +	xchg	%ax, %si
    1.16 ++	cmpb	(%si),%ah
    1.17 ++	je	run_etherboot
    1.18  +	push	%ds
    1.19  +	pop	%es
    1.20  +	movw	$boot_url, %di