int status = 0;
if ((status = mem_map(NULL, &mapped, USR_STACK, NULL, ¶m))) {
- kprint_panic("fail to alloc user stack: %d", status);
+ kprintf(KFATAL "fail to alloc user stack: %d", status);
}
mapped->region_copied = __stack_copied;
}
__copy_fdtable(pcb);
- region_copy(&__current->mm, &pcb->mm);
+ region_copy_mm(&__current->mm, &pcb->mm);
/*
* store the return value for forked process.