zeta-v2: switch to using makeproc
authorAlan Cox <alan@linux.intel.com>
Sat, 8 Dec 2018 01:16:51 +0000 (01:16 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 8 Dec 2018 01:16:51 +0000 (01:16 +0000)
Kernel/platform-zeta-v2/tricks.s

index 93bc9d9..c0e8da2 100644 (file)
@@ -3,7 +3,8 @@
         .module tricks
 
         .globl _ptab_alloc
-        .globl _newproc
+        .globl _makeproc
+       .globl _udata
         .globl _chksigs
         .globl _getproc
         .globl _platform_monitor
@@ -173,10 +174,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