Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
ZMZ
OSKernel2023-ZMZ
Commits
b157820b
Commit
b157820b
authored
1 year ago
by
zrh
Browse files
Options
Download
Patches
Plain Diff
fix one small bug, re-check exec, but still can not start new test due to sbi panic
parent
c980d734
recover
display
k210
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/exec.c
+1
-1
kernel/exec.c
with
1 addition
and
1 deletion
+1
-1
kernel/exec.c
+
1
−
1
View file @
b157820b
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets