git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: lunadbg GDB plugin to ease kernel debugging process.
[lunaix-os.git]
/
lunaix-os
/
kernel
/
process
/
process.c
diff --git
a/lunaix-os/kernel/process/process.c
b/lunaix-os/kernel/process/process.c
index 370a5425c8636f21f3a6d05ce8491dc840433b29..bdd904917d2d2a8c6dd7b0032cf5971be8b70648 100644
(file)
--- a/
lunaix-os/kernel/process/process.c
+++ b/
lunaix-os/kernel/process/process.c
@@
-160,7
+160,7
@@
init_proc_user_space(struct proc_info* pcb)
int status = 0;
if ((status = mem_map(NULL, &mapped, USR_STACK, NULL, ¶m))) {
int status = 0;
if ((status = mem_map(NULL, &mapped, USR_STACK, NULL, ¶m))) {
- kprint
_panic(
"fail to alloc user stack: %d", status);
+ kprint
f(KFATAL
"fail to alloc user stack: %d", status);
}
mapped->region_copied = __stack_copied;
}
mapped->region_copied = __stack_copied;
@@
-218,7
+218,7
@@
dup_proc()
}
__copy_fdtable(pcb);
}
__copy_fdtable(pcb);
- region_copy(&__current->mm, &pcb->mm);
+ region_copy
_mm
(&__current->mm, &pcb->mm);
/*
* store the return value for forked process.
/*
* store the return value for forked process.