From 1ddad3d552675835191e94c2728ab8a289c5926c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 17 Jan 2015 02:17:31 +0000 Subject: [PATCH] tricks.s: tgl6502 fork fix - copy 7 banks not 8 --- Kernel/platform-tgl6502/tricks.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Kernel/platform-tgl6502/tricks.s b/Kernel/platform-tgl6502/tricks.s index d635177a..9bd53b9f 100644 --- a/Kernel/platform-tgl6502/tricks.s +++ b/Kernel/platform-tgl6502/tricks.s @@ -183,7 +183,6 @@ _dofork: lda U_DATA__U_PAGE sta $FF8A ; switch to child and child stack ; and zero page etc - ; We are now in the kernel child context ; now the copy operation is complete we can get rid of the stuff @@ -244,7 +243,7 @@ copy_loop: iny clc adc #1 - cmp #8 + cmp #7 bne copy_loop jmp map_kernel ; put the kernel mapping back as it should be -- 2.34.1