From 8b4e15352a687bbf160e611c306db6dd772d94a0 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 8 Dec 2018 01:16:51 +0000 Subject: [PATCH] zeta-v2: switch to using makeproc --- Kernel/platform-zeta-v2/tricks.s | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-zeta-v2/tricks.s b/Kernel/platform-zeta-v2/tricks.s index 93bc9d90..c0e8da2b 100644 --- a/Kernel/platform-zeta-v2/tricks.s +++ b/Kernel/platform-zeta-v2/tricks.s @@ -3,7 +3,8 @@ .module tricks .globl _ptab_alloc - .globl _newproc + .globl _makeproc + .globl _udata .globl _chksigs .globl _getproc .globl _platform_monitor @@ -173,10 +174,13 @@ _dofork: pop bc ; The child makes its own new process table entry, etc. - ld hl, (fork_proc_ptr) + ld hl, #_udata + push hl + ld hl, (fork_proc_ptr) push hl - call _newproc + call _makeproc pop bc + pop bc ; any calls to map process will now map the childs memory -- 2.34.1