-
-
Notifications
You must be signed in to change notification settings - Fork 163
feat(riscv platform vf2): vf2 platform adapted to riscv architecture #1285
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| pub mod of; | ||
| pub mod sbi; | ||
| pub mod vf2; |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -20,15 +20,23 @@ use core::ptr::addr_of; | |||||
| /// console_putstr(message); | ||||||
| /// ``` | ||||||
| pub fn console_putstr(s: &[u8]) { | ||||||
| if SbiDriver::extensions().contains(SBIExtensions::CONSOLE) { | ||||||
| for c in s { | ||||||
| sbi_rt::console_write_byte(*c); | ||||||
| } | ||||||
| return; | ||||||
| } else { | ||||||
| for c in s { | ||||||
| #[allow(deprecated)] | ||||||
| sbi_rt::legacy::console_putchar(*c as usize); | ||||||
| // 原本的是适配opensbi的, 但是对rustsbi的适配存在问题, 不能正确的解析'\r' | ||||||
|
||||||
| // 原本的是适配opensbi的, 但是对rustsbi的适配存在问题, 不能正确的解析'\r' | |
| // The original implementation was adapted for OpenSBI, but there are compatibility issues with RustSBI, which cannot correctly parse '\r' |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,63 @@ | ||||||
| use bitfield_struct::bitfield; | ||||||
|
|
||||||
| #[bitfield(u32)] | ||||||
| pub struct DES0 { | ||||||
| _reserved0: bool, | ||||||
| disable_interrupt_on_completion: bool, | ||||||
| last_decriptor: bool, | ||||||
|
||||||
| last_decriptor: bool, | |
| last_descriptor: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JensenWei007 这里需要小改一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我测试了一下,貌似这个不是必须的?在
mmc.rs那,用到的地方,直接core::str::from_utf8就可以了?