summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-20 00:48:38 +0000
committerhpa <hpa>2005-08-20 00:48:38 +0000
commite5450b7cd33808991aa8d0747523a6874c4204e5 (patch)
tree3c186aef47808395d085a500c64942c8d7b65820
parenteaecfe1f457a9091c0c53c0fb5fc0a348c84ce60 (diff)
downloadsyslinux-e5450b7cd33808991aa8d0747523a6874c4204e5.tar.gz
Clean up abort.inc to handle NASM bug (forward jmp through equ)syslinux-3.10-pre15
-rw-r--r--abort.inc16
1 files changed, 6 insertions, 10 deletions
diff --git a/abort.inc b/abort.inc
index 850a2664..d2b6c170 100644
--- a/abort.inc
+++ b/abort.inc
@@ -17,11 +17,10 @@
; Code to terminate a kernel load
;
+ section .text
;
; abort_check: let the user abort with <ESC> or <Ctrl-C>
;
-abort_load equ abort_check.do_abort
-
abort_check:
call pollchar
jz .ret1
@@ -30,7 +29,10 @@ abort_check:
cmp al,27 ; <ESC>
je .kill
cmp al,3 ; <Ctrl-C>
- jne .ret2
+ je .kill
+.ret2: popa
+.ret1: ret
+
.kill: mov si,aborted_msg
; ... fall through ...
@@ -44,7 +46,7 @@ abort_check:
;
; SI = offset (in _text) of error message to print
;
-.do_abort:
+abort_load:
mov ax,cs ; Restore CS = DS = ES
mov ds,ax
mov es,ax
@@ -63,9 +65,3 @@ abort_check:
; Return to the command prompt
jmp enter_command
-
-;
-; End of abort_check
-;
-.ret2: popa
-.ret1: ret