Skip to content
New issue

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

feat(riscv): riscv下能够运行hello world用户程序 #770

Merged

Conversation

fslongjin
Copy link
Member

@fslongjin fslongjin commented Apr 25, 2024

由于dad k目前还没支持多架构的编译,所以我没把测试程序放上来。
测试程序非常简单,就是一个c程序,printf一个hello world,接着死循环。

@dragonosbot
Copy link

@fslongjin: no appropriate reviewer found, use r? to override

@dragonosbot dragonosbot added O-riscv64 Target: riscv64 O-x86_64 Target: x86_64 S-等待审查 Status: 等待assignee以及相关方的审查。 T-driver Relevant to the driver team, which will review and decide on the PR/issue. labels Apr 25, 2024
@github-actions github-actions bot added the enhancement New feature or request label Apr 25, 2024
@fslongjin
Copy link
Member Author

r? @Chiichen

Comment on lines +97 to 98
const ENTRY_FLAG_WRITEABLE: usize = 1 << 1;
const ENTRY_FLAG_READWRITE: usize = 1 << 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这俩是一样的吗

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x86下面只有write 的bit,而rv是二者都有。

这个添加的值是不影响的,只有rv的代码会用到

@fslongjin fslongjin merged commit 471d65c into DragonOS-Community:master Apr 26, 2024
8 checks passed
BrahmaMantra pushed a commit to BrahmaMantra/DragonOS that referenced this pull request Dec 9, 2024
* feat(riscv): riscv下能够运行hello world用户程序
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request O-riscv64 Target: riscv64 O-x86_64 Target: x86_64 S-等待审查 Status: 等待assignee以及相关方的审查。 T-driver Relevant to the driver team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants