aboutsummaryrefslogtreecommitdiffstats
path: root/abort.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-08-17 15:19:44 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-08-17 15:19:44 -0700
commit243a8f70d28ac922df7855301496727a743ab469 (patch)
tree64384ffc6129bcb534f0b1ceeb5833d25c72cdf6 /abort.inc
parentfce3daf690aac2e42b067f8d3eba9285bf4b4dc9 (diff)
downloadsyslinux-elf-243a8f70d28ac922df7855301496727a743ab469.tar.gz
syslinux-elf-243a8f70d28ac922df7855301496727a743ab469.tar.xz
syslinux-elf-243a8f70d28ac922df7855301496727a743ab469.zip
Clean up the reset stack macro further; incorporate segment reset
as well as enable interrupts.
Diffstat (limited to 'abort.inc')
-rw-r--r--abort.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/abort.inc b/abort.inc
index f1773b5f..80d70ad6 100644
--- a/abort.inc
+++ b/abort.inc
@@ -46,11 +46,7 @@ abort_check:
; SI = offset (in _text) of error message to print
;
abort_load:
- mov ax,cs ; Restore CS = DS = ES
- mov ds,ax
- mov es,ax
- RESET_STACK ; AX must = 0
- sti
+ RESET_STACK_AND_SEGS AX
call cwritestr ; Expects SI -> error msg
; Return to the command prompt