feat: lunadbg GDB plugin to ease kernel debugging process.
[lunaix-os.git] / lunaix-os / kernel / process / process.c
index 370a5425c8636f21f3a6d05ce8491dc840433b29..bdd904917d2d2a8c6dd7b0032cf5971be8b70648 100644 (file)
@@ -160,7 +160,7 @@ init_proc_user_space(struct proc_info* pcb)
 
     int status = 0;
     if ((status = mem_map(NULL, &mapped, USR_STACK, NULL, &param))) {
-        kprint_panic("fail to alloc user stack: %d", status);
+        kprintf(KFATAL "fail to alloc user stack: %d", status);
     }
 
     mapped->region_copied = __stack_copied;
@@ -218,7 +218,7 @@ dup_proc()
     }
 
     __copy_fdtable(pcb);
-    region_copy(&__current->mm, &pcb->mm);
+    region_copy_mm(&__current->mm, &pcb->mm);
 
     /*
      *  store the return value for forked process.