polio: fix comms

This commit is contained in:
2025-10-03 23:27:27 +02:00
parent a55c7c47e0
commit 5bb49da246
4 changed files with 41 additions and 38 deletions

View File

@@ -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]