-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into oreboot-bl808
- Loading branch information
Showing
63 changed files
with
2,738 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ Cargo.lock | |
|
||
# Ignore all intellij related files | ||
*.idea | ||
|
||
# gdb history files | ||
.gdb_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#![feature(asm_const)] | ||
#![feature(naked_functions)] | ||
#![feature(generator_trait)] | ||
#![no_std] | ||
|
||
#[cfg(feature = "powerpc64")] | ||
pub mod ppc64; | ||
#[cfg(feature = "riscv64")] | ||
pub mod riscv64; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
use core::arch::asm; | ||
|
||
pub fn halt() -> ! { | ||
loop { | ||
// Bug with LLVM marks empty loops as undefined behaviour. | ||
// See: https://github.com/rust-lang/rust/issues/28728 | ||
unsafe { asm!("wfi") } | ||
} | ||
} | ||
|
||
pub fn fence() { | ||
unsafe { asm!("fence") } | ||
} | ||
|
||
pub fn nop() { | ||
unsafe { asm!("nop") } | ||
pub mod sbi { | ||
pub mod execute; | ||
pub mod feature; | ||
pub mod hart_csr_utils; | ||
pub mod info; | ||
pub mod runtime; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../nezha/main/src/feature/emulate_rdtime.rs → ...src/riscv64/sbi/feature/emulate_rdtime.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...unxi/nezha/main/src/feature/sfence_vma.rs → ...rch/src/riscv64/sbi/feature/sfence_vma.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../main/src/feature/supervisor_interrupt.rs → ...scv64/sbi/feature/supervisor_interrupt.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...i/nezha/main/src/feature/transfer_trap.rs → .../src/riscv64/sbi/feature/transfer_trap.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use super::hart_csr_utils; | ||
use log::println; | ||
|
||
pub fn print_info(platform: &str, version: &str) { | ||
println!("RustSBI version {}", rustsbi::VERSION); | ||
println!("{}", rustsbi::LOGO); | ||
println!("Platform Name: {}", platform); | ||
println!("Implementation: oreboot version {}", version); | ||
hart_csr_utils::print_hart_csrs(); | ||
hart_csr_utils::print_hart_pmp(); | ||
} |
Oops, something went wrong.