Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://rcore-os.cn/rCore-Tutorial-Book-v3/chapter7/3cmdargs-and-redirection.html
The text was updated successfully, but these errors were encountered:
竟然没有人评论,那我就来做第一个吧。嘿嘿
Sorry, something went wrong.
嘿嘿
一个问题 user/src/lib.rs里的args应该都append一个\0, 否则可能导致字符串的passing不正确, 虽然ch7的代码直接run是ok的, 但应该是因为那个地址的byte刚好是\0而已..
在内核态的 sys_exec 里需要将 argc 作为返回值返回。不然 syscall 默认将返回值放入 a0 寄存器会将 argc 覆盖。
sys_exec
No branches or pull requests
命令行参数与标准 I/O 重定向 - rCore-Tutorial-Book-v3 3.6.0-alpha.1 文档
https://rcore-os.cn/rCore-Tutorial-Book-v3/chapter7/3cmdargs-and-redirection.html
The text was updated successfully, but these errors were encountered: