diff options
author | hpa <hpa> | 2005-08-20 00:48:38 +0000 |
---|---|---|
committer | hpa <hpa> | 2005-08-20 00:48:38 +0000 |
commit | e5450b7cd33808991aa8d0747523a6874c4204e5 (patch) | |
tree | 3c186aef47808395d085a500c64942c8d7b65820 | |
parent | eaecfe1f457a9091c0c53c0fb5fc0a348c84ce60 (diff) | |
download | syslinux-e5450b7cd33808991aa8d0747523a6874c4204e5.tar.gz |
Clean up abort.inc to handle NASM bug (forward jmp through equ)syslinux-3.10-pre15
-rw-r--r-- | abort.inc | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -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 |