浏览代码

[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>
tags/v1.20.1
Michael Brown 13 年前
父节点
当前提交
9200049c80
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2
    4
      src/arch/i386/prefix/pxeprefix.S

+ 2
- 4
src/arch/i386/prefix/pxeprefix.S 查看文件

396
 	movw	$0xffff, ( pxe_parameter_structure + 0x02 )
396
 	movw	$0xffff, ( pxe_parameter_structure + 0x02 )
397
 	movw	$PXENV_FILE_CMDLINE, %bx
397
 	movw	$PXENV_FILE_CMDLINE, %bx
398
 	call	pxe_call
398
 	call	pxe_call
399
-	jnc	1f
400
-	call	print_pxe_error
401
-	jmp	99f
402
-1:	/* Check for non-NULL command line */
399
+	jc	99f  /* Suppress errors; this is an iPXE extension API call */
400
+	/* Check for non-NULL command line */
403
 	movw	( pxe_parameter_structure + 0x02 ), %ax
401
 	movw	( pxe_parameter_structure + 0x02 ), %ax
404
 	testw	%ax, %ax
402
 	testw	%ax, %ax
405
 	jz	99f
403
 	jz	99f

正在加载...
取消
保存