From f0fdd1f65e7a8e9aabe70b357753ce8881260b46 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 10 Sep 2018 00:19:42 +0100 Subject: [PATCH] usermem_std-z80-thunked: Fix return codes With this fixed the Sam port gets as far as fork and then (not unexpectedly) suffers a terminal existence failure. --- Kernel/usermem_std-z80-thunked.s | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Kernel/usermem_std-z80-thunked.s b/Kernel/usermem_std-z80-thunked.s index db83917c..65dd9e57 100644 --- a/Kernel/usermem_std-z80-thunked.s +++ b/Kernel/usermem_std-z80-thunked.s @@ -134,6 +134,7 @@ uget1: ; not split ldir uget_out: pop ix + ld hl,#0 jp map_kernel_low __uput: @@ -153,6 +154,7 @@ __uput: uput1: ldir pop ix + ld hl,#0 jp map_kernel_low __uzero: @@ -175,6 +177,7 @@ zeroit_1: call user_mapping call zeroit pop ix + ld hl,#0 ret zeroit: ld (hl),#0 -- 2.34.1