]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[prefix] Halt system without burning CPU if we cannot access the payload
authorMichael Brown <mcb30@ipxe.org>
Tue, 26 Aug 2014 13:46:14 +0000 (14:46 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 26 Aug 2014 14:08:46 +0000 (15:08 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/libprefix.S

index 13da652ed97f07e977266e21cd50871cc2eb5273..aae07354ff02bb16e8c70b61b97d3fa607a714ea 100644 (file)
@@ -748,7 +748,10 @@ a20_death_message:
        call    print_hex_dword
        movw    $payload_death_message, %si
        call    print_message
-2:     jmp     2b
+2:     /* Halt system */
+       cli
+       hlt
+       jmp     2b
        .section ".prefix.data", "aw", @progbits
 payload_death_message:
        .asciz  "\nPayload inaccessible - cannot continue\n"