From fe759f07c53f2b4139e05928f120e5a3bae0d43e Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 8 Dec 2018 01:17:28 +0000 Subject: [PATCH] coco2: use makeproc --- Kernel/platform-coco3/tricks.s | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-coco3/tricks.s b/Kernel/platform-coco3/tricks.s index a212a36d..619fb8cc 100644 --- a/Kernel/platform-coco3/tricks.s +++ b/Kernel/platform-coco3/tricks.s @@ -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 -- 2.34.1