From f8cb8ba92ed519b4684f6835191dd867f5730e4e Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 8 Dec 2018 01:15:01 +0000 Subject: [PATCH] amstradnc: use makeproc --- Kernel/platform-amstradnc/tricks.s | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-amstradnc/tricks.s b/Kernel/platform-amstradnc/tricks.s index a165b031..3a88eeac 100644 --- a/Kernel/platform-amstradnc/tricks.s +++ b/Kernel/platform-amstradnc/tricks.s @@ -3,7 +3,7 @@ .module tricks .globl _ptab_alloc - .globl _newproc + .globl _makeproc .globl _chksigs .globl _getproc .globl _platform_monitor @@ -18,6 +18,7 @@ .globl _ramtop .globl _need_resched .globl _int_disabled + .globl _udata ; imported debug symbols .globl outstring, outde, outhl, outbc, outnewline, outchar, outcharhex @@ -173,11 +174,13 @@ _dofork: pop bc pop bc + ld hl,#_udata ; The child makes its own new process table entry, etc. - ld hl, (fork_proc_ptr) + 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