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

index a212a36..619fb8c 100644 (file)
@@ -4,12 +4,13 @@
         .module tricks
 
        ;; imported
-        .globl _newproc
+        .globl _makeproc
         .globl _chksigs
         .globl _getproc
         .globl _platform_monitor
        .globl _get_common
        .globl _swap_finish
+       .globl _udata
 
        ;; exported
         .globl _platform_switchout
@@ -186,8 +187,11 @@ _dofork:
         ;; _switchin will be expecting from our copy of the stack.
        puls    x
 
+       ldx     #_udata
+       pshs    x
         ldx    fork_proc_ptr   ; get forked process
-        jsr    _newproc        ; and set it up
+        jsr    _makeproc       ; and set it up
+       puls    x
 
        ;; any calls to map process will now map the childs memory