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

index ebb0958..871fd0f 100644 (file)
@@ -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