Skip to content

Commit

Permalink
[prefix] Halt system without burning CPU if we cannot access the payload
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Aug 26, 2014
1 parent bfe9f06 commit 9d21e13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/arch/i386/prefix/libprefix.S
Expand Up @@ -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"
Expand Down

0 comments on commit 9d21e13

Please sign in to comment.