mirror of https://github.com/ipxe/ipxe.git
[pxeprefix] Ignore errors from PXENV_FILE_CMDLINE
PXENV_FILE_CMDLINE is an iPXE extension, and will not be supported by most PXE stacks. Do not report any errors to the user, since in almost all cases the error will mean simply "not loaded by iPXE". Reported-by: Patrick Domack <patrickdk@patrickdk.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/598/head
parent
2d7c966e77
commit
9200049c80
|
@ -396,10 +396,8 @@ get_cmdline:
|
||||||
movw $0xffff, ( pxe_parameter_structure + 0x02 )
|
movw $0xffff, ( pxe_parameter_structure + 0x02 )
|
||||||
movw $PXENV_FILE_CMDLINE, %bx
|
movw $PXENV_FILE_CMDLINE, %bx
|
||||||
call pxe_call
|
call pxe_call
|
||||||
jnc 1f
|
jc 99f /* Suppress errors; this is an iPXE extension API call */
|
||||||
call print_pxe_error
|
/* Check for non-NULL command line */
|
||||||
jmp 99f
|
|
||||||
1: /* Check for non-NULL command line */
|
|
||||||
movw ( pxe_parameter_structure + 0x02 ), %ax
|
movw ( pxe_parameter_structure + 0x02 ), %ax
|
||||||
testw %ax, %ax
|
testw %ax, %ax
|
||||||
jz 99f
|
jz 99f
|
||||||
|
|
Loading…
Reference in New Issue