diff src/proc.c @ 19:bf2f70fa8852

fix proc.c not generate memcpy4
author tobaru
date Thu, 05 Apr 2018 12:10:21 +0900
parents 83c23a36980d
children 397e74cbf14e
line wrap: on
line diff
--- a/src/proc.c	Mon Mar 05 19:31:28 2018 +0900
+++ b/src/proc.c	Thu Apr 05 12:10:21 2018 +0900
@@ -196,7 +196,8 @@
 
     np->sz = proc->sz;
     np->parent = proc;
-    *np->tf = *proc->tf;
+    // *np->tf = *proc->tf; // This generate memcpy4 which is not in libgcc.a 
+    memmove(np->tf, proc->tf, sizeof(*np->tf));
 
     // Clear r0 so that fork returns 0 in the child.
     np->tf->r0 = 0;