diff options
| author | Michael Brown | 2014-08-26 15:46:14 +0200 |
|---|---|---|
| committer | Michael Brown | 2014-08-26 16:08:46 +0200 |
| commit | 9d21e1352224f657fbe63fdbbb522adcd1307a44 (patch) | |
| tree | 62e1e3400b996e8a51fd40e9e5160e8b94750dc3 | |
| parent | [build] Avoid deleting config header files if build is interrupted (diff) | |
| download | ipxe-9d21e1352224f657fbe63fdbbb522adcd1307a44.tar.gz ipxe-9d21e1352224f657fbe63fdbbb522adcd1307a44.tar.xz ipxe-9d21e1352224f657fbe63fdbbb522adcd1307a44.zip | |
[prefix] Halt system without burning CPU if we cannot access the payload
Signed-off-by: Michael Brown <mcb30@ipxe.org>
| -rw-r--r-- | src/arch/i386/prefix/libprefix.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/i386/prefix/libprefix.S b/src/arch/i386/prefix/libprefix.S index 13da652ed..aae07354f 100644 --- a/src/arch/i386/prefix/libprefix.S +++ b/src/arch/i386/prefix/libprefix.S @@ -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" |
