Commit b157820b authored by zrh's avatar zrh
Browse files

fix one small bug, re-check exec, but still can not start new test due to sbi panic

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -265,7 +265,7 @@ int execve(char *path, char **argv, char **envp) ...@@ -265,7 +265,7 @@ int execve(char *path, char **argv, char **envp)
copyout(pagetable, a1, (char *)uargv, (argc + 1) * sizeof(uint64)) < 0 || copyout(pagetable, a1, (char *)uargv, (argc + 1) * sizeof(uint64)) < 0 ||
copyout(pagetable, sp, (char *)&argc, sizeof(uint64)) < 0) copyout(pagetable, sp, (char *)&argc, sizeof(uint64)) < 0)
{ {
__debug_warn("execve", "fail to copy argv/envp table into user stack\n"); __debug_warn("execve", "fail to copy argv/envp table into user stack\n");//
ret = -EINVAL; ret = -EINVAL;
goto bad; goto bad;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment