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

index ed9e24c..c33f1cd 100644 (file)
@@ -7,7 +7,7 @@
        .module tricks32
 
        .globl _ptab_alloc
-       .globl _newproc
+       .globl _makeproc
        .globl _chksigs
        .globl _getproc
        .globl _runticks
@@ -28,6 +28,8 @@
        .globl _platform_copier_l
        .globl _platform_copier_h
 
+       .globl _udata
+
        .area _HIGH
 
 ;
@@ -165,6 +167,7 @@ _dofork:
        call _program_vectors
        pop hl                  ; discard
 
+
        ld hl,(fork_proc_ptr)
        push ix
        call copy_process
@@ -193,9 +196,12 @@ _dofork:
 
        ; Back into the kernel to finish the process creation
 
+       ld hl,#_udata
+       push hl
        ld hl,(fork_proc_ptr)
        push hl
-       call _newproc
+       call _makeproc
+       pop bc
        pop bc
 
        ; Clear runticks, and return 0