Skip to content

Commit c20f241

Browse files
authored
Merge pull request rustsbi#56 from YdrMaster/main
Update project dependencies
2 parents 2ea3bab + 9c7773c commit c20f241

File tree

12 files changed

+72
-69
lines changed

12 files changed

+72
-69
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1515
### Modified
1616

1717
- Use derive macro based RustSBI interface, with separate functions for legacy stdio
18+
- Update rustsbi to version 0.4.0-alpha.1
19+
- Update sbi-spec to version 0.0.7
20+
- Update sbi-rt to version 0.0.3
1821
- Update sbi-testing to version 0.0.1
19-
- Update sbi-spec to version 0.0.6
2022
- Use crate *fast-trap* version 0.0.1 in rustsbi-qemu for trap handling
2123
- Use crate *rcore-console* version 0.0.0 in rustsbi-qemu and test-kernel for `print!` and `println!`
2224
- Use crate *aclint* version 0.0.0 in rustsbi-qemu for aclint structs
2325
- Use crate *os-xtask-utils* version 0.0.0 in xtask builder
2426
- Use crate *sifive-test-device* version 0.0.0 instead of qemu-exit
2527
- Use crate *uart16550* version 0.0.1 for 16550 definition
2628
- Use `wfi` for suspend and stop without enable mie
29+
- Remove crate *once_cell* from dependencies
2730

2831
### Fixed
2932

Cargo.lock

Lines changed: 48 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bench-kernel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = false
88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dependencies]
11-
sbi-rt = "0.0.3-rc.5"
11+
sbi-rt = "0.0.3"
1212
riscv = "0.10.1"
1313
uart16550 = "0.0.1"
1414
rcore-console = "0.0.0"

hsm-cell/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
sbi-spec = "0.0.7-alpha.3"
9+
sbi-spec = "0.0.7"
1010

1111
[lib]
1212
name = "hsm_cell"

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
22
profile = "minimal"
33
channel = "nightly"
4-
components = ["rust-src", "llvm-tools-preview", "rustfmt", "clippy"]
4+
components = ["rust-src", "llvm-tools", "rustfmt", "clippy"]
55
targets = ["riscv64imac-unknown-none-elf"]

rustsbi-qemu/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ edition = "2021"
1717
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1818

1919
[dependencies]
20-
rustsbi = { git = "https://github.com/rustsbi/rustsbi", rev = "4c40cd", features = [
21-
"machine",
22-
] }
23-
sbi-spec = { version = "0.0.7-alpha.3", features = ["legacy"] }
20+
rustsbi = { version = "0.4.0-alpha.1", features = ["machine"] }
21+
sbi-spec = { version = "0.0.7", features = ["legacy"] }
2422
riscv = "0.10.1"
2523
spin = "0.9"
2624
rcore-console = "0.0.0"

rustsbi-qemu/src/clint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use core::{
44
ptr::null_mut,
55
sync::atomic::{AtomicPtr, Ordering},
66
};
7-
use rustsbi::{spec::binary::SbiRet, HartMask, Ipi, Timer};
7+
use rustsbi::{HartMask, Ipi, SbiRet, Timer};
88

99
pub(crate) struct Clint;
1010

rustsbi-qemu/src/dbcn.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
use crate::uart16550;
22
use core::ops::Range;
3-
use rustsbi::{
4-
spec::binary::{Physical, SbiRet},
5-
Console,
6-
};
3+
use rustsbi::{Console, Physical, SbiRet};
74
use spin::Once;
85

96
pub(crate) struct DBCN(Range<usize>);

rustsbi-qemu/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ extern "C" fn fast_handler(
213213
mie::write(mie::MSIE | mie::MTIE);
214214
break boot(ctx, supervisor.start_addr, supervisor.opaque);
215215
}
216-
Err(sbi_spec::hsm::HART_STOP) => {
216+
Err(rustsbi::spec::hsm::HART_STOP) => {
217217
mie::write(mie::MSIE);
218218
unsafe { riscv::asm::wfi() };
219219
clint::clear_msip();

rustsbi-qemu/src/qemu_test.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
use rustsbi::{
2-
spec::{
3-
binary::SbiRet,
4-
srst::{
5-
RESET_REASON_NO_REASON, RESET_REASON_SYSTEM_FAILURE, RESET_TYPE_COLD_REBOOT,
6-
RESET_TYPE_SHUTDOWN, RESET_TYPE_WARM_REBOOT,
7-
},
2+
spec::srst::{
3+
RESET_REASON_NO_REASON, RESET_REASON_SYSTEM_FAILURE, RESET_TYPE_COLD_REBOOT,
4+
RESET_TYPE_SHUTDOWN, RESET_TYPE_WARM_REBOOT,
85
},
9-
Reset,
6+
Reset, SbiRet,
107
};
118
use sifive_test_device::SifiveTestDevice;
129
use spin::Once;

0 commit comments

Comments
 (0)