Explorar el Código

[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 hace 9 años
padre
commit
9d21e13522
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4
    1
      src/arch/i386/prefix/libprefix.S

+ 4
- 1
src/arch/i386/prefix/libprefix.S Ver fichero

@@ -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…
Cancelar
Guardar