From 0d5a42b6842957a7332c8b224e9303e299227b74 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 2 Jun 2018 20:16:32 +0100 Subject: [PATCH] z80: correct banked banking dofork With this fixed we now fork correctly on TRS80 model 1 --- Kernel/lib/z80fixedbank-banked.s | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/lib/z80fixedbank-banked.s b/Kernel/lib/z80fixedbank-banked.s index aa2eca0d..78ceb1a9 100644 --- a/Kernel/lib/z80fixedbank-banked.s +++ b/Kernel/lib/z80fixedbank-banked.s @@ -219,10 +219,12 @@ _dofork: ; FIXME: we should no longer need interrupts off for most of a ; fork() call. ; + pop bc ; bank pop de ; return address pop hl ; new process p_tab* push hl push de + push bc ld (fork_proc_ptr), hl -- 2.34.1