From 8e3dbb1bea01053d99bbff59cfc271d445e57d74 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 8 Dec 2018 01:16:14 +0000 Subject: [PATCH] rc2014: use makeproc --- Kernel/platform-rc2014/tricks.s | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-rc2014/tricks.s b/Kernel/platform-rc2014/tricks.s index ebb09587..871fd0fc 100644 --- a/Kernel/platform-rc2014/tricks.s +++ b/Kernel/platform-rc2014/tricks.s @@ -3,7 +3,7 @@ .module tricks .globl _ptab_alloc - .globl _newproc + .globl _makeproc .globl _chksigs .globl _getproc .globl _platform_monitor @@ -20,6 +20,7 @@ .globl _need_resched .globl mpgsel_cache .globl _int_disabled + .globl _udata ; imported debug symbols .globl outstring, outde, outhl, outbc, outnewline, outchar, outcharhex @@ -176,10 +177,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