msx2: use makeproc
authorAlan Cox <alan@linux.intel.com>
Sat, 8 Dec 2018 01:15:59 +0000 (01:15 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 8 Dec 2018 01:15:59 +0000 (01:15 +0000)
Kernel/platform-msx2/tricks.s

index 5354d46..a9e5a21 100644 (file)
@@ -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