From 3056d659fa9be2659f97004ffcad3747b0a99739 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Wed, 13 Jan 2021 18:36:12 +0000 Subject: [PATCH] fix syscall gateway not preserving DS on entry --- kernel/syscall.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/syscall.asm b/kernel/syscall.asm index c4e9300..8efe0e9 100644 --- a/kernel/syscall.asm +++ b/kernel/syscall.asm @@ -91,6 +91,7 @@ int21: push ds push word [cs:bx] ; restore user data and launch ret chain mov bx, [PSPBX] + mov ds, [PSPDS] ret err: mov ah, 0xFF