From edfeefd32721a9bc604923dcc26ce78ca75a5d38 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 10 Feb 2019 16:01:50 +0000 Subject: [PATCH] 8080: fix up bugs in the fork and copiers Task switching is still busted somewhere --- Kernel/lib/8080fixedbank-core.s | 1 + Kernel/lib/8080fixedbank.s | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Kernel/lib/8080fixedbank-core.s b/Kernel/lib/8080fixedbank-core.s index bdff5b96..52db9f0e 100644 --- a/Kernel/lib/8080fixedbank-core.s +++ b/Kernel/lib/8080fixedbank-core.s @@ -233,6 +233,7 @@ _dofork: ! ! Frame pointer ! + xchg ! return 0 in DE for child pop b ret diff --git a/Kernel/lib/8080fixedbank.s b/Kernel/lib/8080fixedbank.s index dfa57c00..63832f4a 100644 --- a/Kernel/lib/8080fixedbank.s +++ b/Kernel/lib/8080fixedbank.s @@ -8,35 +8,35 @@ copy512: mvi b,64 copy8: - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d -- 2.34.1