From ab6e0ae79e006ffd177dcaf67d725a5f9cc47df2 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 10 Sep 2018 01:15:09 +0100 Subject: [PATCH] sam: write the udata stash into the right page --- Kernel/platform-sam/tricks.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-sam/tricks.s b/Kernel/platform-sam/tricks.s index c210ac41..0bf22e49 100644 --- a/Kernel/platform-sam/tricks.s +++ b/Kernel/platform-sam/tricks.s @@ -79,7 +79,7 @@ _switchin: ; We are going to write our stack directly under us. No calls for ; a moment exx - ld hl,#U_DATA_STASH + ld hl,#U_DATA_STASH-0x8000 ld de,#U_DATA ld bc,#U_DATA__TOTALSIZE ldir @@ -174,8 +174,8 @@ _dofork: ; Now put the u_data into the stash for the parent, then we can ; modify it for the child - ; Map parent - ld a,(U_DATA__U_PAGE) + ; Map parent high page + ld a,(U_DATA__U_PAGE+1) call map_page_low ; Copy udata ld hl, #U_DATA -- 2.34.1