Browse Source

[prefix] Halt system without burning CPU if we cannot access the payload

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
9d21e13522
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/arch/i386/prefix/libprefix.S

+ 4
- 1
src/arch/i386/prefix/libprefix.S View File

@@ -748,7 +748,10 @@ a20_death_message:
748 748
 	call	print_hex_dword
749 749
 	movw	$payload_death_message, %si
750 750
 	call	print_message
751
-2:	jmp	2b
751
+2:	/* Halt system */
752
+	cli
753
+	hlt
754
+	jmp	2b
752 755
 	.section ".prefix.data", "aw", @progbits
753 756
 payload_death_message:
754 757
 	.asciz	"\nPayload inaccessible - cannot continue\n"

Loading…
Cancel
Save