summaryrefslogtreecommitdiff
path: root/mbr
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-11 17:25:59 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-07-11 17:25:59 -0700
commite8c07079cbf59fdd85e9e434dce9dcda1c217961 (patch)
tree024103dd23fc1e2066247e4cb91e792a2b8c2db0 /mbr
parenta8d408bf597785a738e91893411d0604bea4d772 (diff)
downloadsyslinux-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.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index 8d472da1..06e19805 100644
--- a/mbr/mbr.S
+++ b/mbr/mbr.S
@@ -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"