polio: fix comms
This commit is contained in:
13
src/polio.s
13
src/polio.s
@@ -6,7 +6,7 @@
|
||||
.global _start
|
||||
_start:
|
||||
cli
|
||||
mov ax, 0x2000 # stack address
|
||||
mov ax, 0x2000 # stack address, shared with polmon
|
||||
mov sp, ax # ss should already be 0
|
||||
sti
|
||||
jmp main
|
||||
@@ -143,7 +143,7 @@ recvpara:
|
||||
mov ax, [bp+0]
|
||||
add ax, si
|
||||
mov dx, [bp+2]
|
||||
call paracomm_recv
|
||||
call pararecv
|
||||
ret
|
||||
|
||||
.section .text.int80h
|
||||
@@ -157,12 +157,11 @@ int80h:
|
||||
xor cx, cx
|
||||
mov es, cx
|
||||
mov ds, cx
|
||||
shl ah
|
||||
cmp ah, offset int80h_entries
|
||||
xchg ah, cl
|
||||
shl cl
|
||||
cmp cl, offset int80h_entries
|
||||
jge 0f
|
||||
mov al, ah
|
||||
xor ah, ah
|
||||
mov si, ax
|
||||
mov si, cx
|
||||
mov bp, sp
|
||||
lea bp, [bp + 16] # 10 for us, 6 for the interrupt
|
||||
call cs:[int80h_table+si]
|
||||
|
Reference in New Issue
Block a user