Parcourir la 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 il y a 9 ans
Parent
révision
9d21e13522
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4
    1
      src/arch/i386/prefix/libprefix.S

+ 4
- 1
src/arch/i386/prefix/libprefix.S Voir le fichier

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

Chargement…
Annuler
Enregistrer