From 2100fd6b768d9aa62442254b4fba448ef710bb91 Mon Sep 17 00:00:00 2001 From: hpa Date: Mon, 9 Apr 2001 19:48:23 +0000 Subject: [PATCH] If we get a disk error, do the "kaboom" thing. --- isolinux.asm | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/isolinux.asm b/isolinux.asm index 214160e..5b22f84 100644 --- a/isolinux.asm +++ b/isolinux.asm @@ -717,10 +717,26 @@ xint13: mov byte [RetryCount], 6 mov al,dl call writehex2 call crlf + ; Fall through to kaboom +; +; kaboom: write a message and bail out. Wait for a user keypress, +; then do a hard reboot. +; +kaboom: + lss sp,[cs:Stack] + mov ax,cs + mov ds,ax + mov es,ax + mov fs,ax + mov gs,ax + sti + mov si,err_bootfailed + call cwritestr + call getchar + int 19h .norge: jmp short .norge - ; ; Data that needs to be in the first sector ; @@ -2699,25 +2715,6 @@ ac_ret1: ret ; -; kaboom: write a message and bail out. Wait for quite a while, or a user keypress, -; then do a hard reboot. -; -kaboom: - lss sp,[cs:Stack] - mov ax,cs - mov ds,ax - mov es,ax - mov fs,ax - mov gs,ax - sti - mov si,err_bootfailed - call cwritestr - call getchar - int 19h -.norge: jmp short .norge - - -; ; searchdir: ; ; Open a file -- 2.7.4