From 500d47b9ff1e2cb80446de7af9482f6bb6eddb2b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 31 May 2015 16:59:39 +0100 Subject: [PATCH] z80fixedbank: Enable Tormod's UDATA optimisation --- Kernel/lib/z80fixedbank.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Kernel/lib/z80fixedbank.s b/Kernel/lib/z80fixedbank.s index 78ad933e..864f09ef 100644 --- a/Kernel/lib/z80fixedbank.s +++ b/Kernel/lib/z80fixedbank.s @@ -117,10 +117,10 @@ _switchin: pop hl ld a, (hl) not_swapped: -; ld hl, (U_DATA__U_PTAB) -; or a -; sbc hl, de -; jr z, skip_copyback ; Tormod's optimisation: don't copy the + ld hl, (U_DATA__U_PTAB) + or a + sbc hl, de + jr z, skip_copyback ; Tormod's optimisation: don't copy the ; the stash back if we are the task who ; last owned the real udata ; Pages please ! -- 2.34.1