Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

feat(prototyper): add Sipeed m1s dock support #57

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 183 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions prototyper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fast-trap = { version = "0.0.1", features = ["riscv-m"] }
serde-device-tree = { git = "https://github.com/rustsbi/serde-device-tree", default-features = false }
uart_xilinx = { git = "https://github.com/duskmoon314/uart-rs/" }
xuantie-riscv = { git= "https://github.com/rustsbi/xuantie" }
bouffalo-hal = { git = "https://github.com/rustsbi/bouffalo-hal", rev = "968b949", features = ["bl808"] }

[[bin]]
name = "rustsbi-prototyper"
Expand Down
8 changes: 5 additions & 3 deletions prototyper/src/cfg.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/// The address where the SBI link start.
pub const SBI_LINK_START_ADDRESS: usize = 0x80000000;
/// Maximum number of supported harts.
pub const NUM_HART_MAX: usize = 8;
/// Stack size per hart (hardware thread) in bytes.
pub const LEN_STACK_PER_HART: usize = 16 * 1024;
/// Heap Size of SBI firmware
/// Heap Size of SBI firmware.
pub const HEAP_SIZE: usize = 32 * 1024;
/// Page size
/// Platform page size.
pub const PAGE_SIZE: usize = 4096;
/// TLB_FLUSH_LIMIT defines the TLB refresh range limit.
/// If the TLB refresh range is greater than TLB_FLUSH_LIMIT, the entire TLB is refreshed.
pub const TLB_FLUSH_LIMIT: usize = 4 * PAGE_SIZE;

#[cfg(feature = "jump")]
pub const JUMP_ADDRESS: usize = 0x80200000;
pub const JUMP_ADDRESS: usize = 0x50000000;
Loading