summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-10 16:32:00 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-10 16:32:00 -0700
commitfdfe1e9dadfa9e4b96f7c62e993f1e6548c2f293 (patch)
treebd1044b8740dc332b61a6ccabb05d450b9d90dd8
parent0567ceb761f37a1a0bae2726747190789fcd515b (diff)
downloadsyslinux-fdfe1e9dadfa9e4b96f7c62e993f1e6548c2f293.tar.gz
Fix DOS interrupt error messagessyslinux-3.70-pre16
-rw-r--r--core/comboot.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/comboot.inc b/core/comboot.inc
index abc72707..842b2f63 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -151,10 +151,11 @@ comboot_setup_api:
mov di,DOSErrTramp ; Error trampolines
mov cx,32
push cx
- mov eax,0EB7A6A20h ; push 20h; jmp <tramp>
+ mov eax,02EB206Ah ; push 20h; jmp $+4
.loop1: stosd
- add eax,1-(4 << 16)
+ inc ah
loop .loop1
+ dec di
mov byte [di-1],0E9h
mov ax,comboot_bogus-2
sub ax,di
@@ -220,8 +221,8 @@ comboot_bad_int21:
; Attempted to execute invalid DOS system call
; The interrupt number is on the stack.
comboot_bogus: cli ; Don't trust anyone
- pop edi ; CS:IP
pop dx ; Interrupt number
+ pop edi ; CS:IP
mov cx,err_notdos
push comboot_bogus_tail
jmp comboot_exit_msg