diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-07-11 17:25:59 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-07-11 17:25:59 -0700 |
commit | e8c07079cbf59fdd85e9e434dce9dcda1c217961 (patch) | |
tree | 024103dd23fc1e2066247e4cb91e792a2b8c2db0 /mbr | |
parent | a8d408bf597785a738e91893411d0604bea4d772 (diff) | |
download | syslinux-e8c07079cbf59fdd85e9e434dce9dcda1c217961.tar.gz |
MBR: add HLT to prevent system from melting on failure
In case we hit the death loop, put HLT in it. It's probably superfluous,
but it can't hurt, and we can always take it out to reclaim the space.
Arguable the death loop is superfluous at all, since int $0x18 should
never return.
Diffstat (limited to 'mbr')
-rw-r--r-- | mbr/mbr.S | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -285,7 +285,9 @@ error: jmp 2b 3: int $0x18 /* Boot failure */ - jmp . /* Die */ +die: + hlt + jmp die missing_os_msg: .ascii "Missing operating system.\r\n" |