From: Alan Cox Date: Sat, 8 Dec 2018 01:15:59 +0000 (+0000) Subject: msx2: use makeproc X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=abd9e3779f7ae40092441428b1909f573de13d1d;p=FUZIX.git msx2: use makeproc --- diff --git a/Kernel/platform-msx2/tricks.s b/Kernel/platform-msx2/tricks.s index 5354d464..a9e5a211 100644 --- a/Kernel/platform-msx2/tricks.s +++ b/Kernel/platform-msx2/tricks.s @@ -3,7 +3,7 @@ .module tricks .globl _ptab_alloc - .globl _newproc + .globl _makeproc .globl _chksigs .globl _getproc .globl _platform_monitor @@ -19,6 +19,7 @@ .globl _ramtop .globl _int_disabled + .globl _udata ; imported debug symbols .globl outstring, outde, outhl, outbc, outnewline, outchar, outcharhex @@ -179,10 +180,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