Skip to content

Commit 7b3e0cb

Browse files
committed
build: update deps
Signed-off-by: YdrMaster <[email protected]>
1 parent 63b738e commit 7b3e0cb

File tree

7 files changed

+56
-67
lines changed

7 files changed

+56
-67
lines changed

Cargo.lock

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

hsm-cell/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ 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.4"
9+
sbi-spec = "0.0.5"

rustsbi-qemu/Cargo.toml

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

1919
[dependencies]
20-
rustsbi = { version = "0.3.2-rc.2", features = ["sbi_2_0"] }
20+
rustsbi = { git = "https://github.com/rustsbi/rustsbi", rev = "91cfa36", features = [
21+
"machine",
22+
] }
2123
sbi-spec = { version = "0.0.5", features = ["legacy"] }
2224
riscv = "0.10.1"
2325
spin = "0.9"

rustsbi-qemu/src/dbcn.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use crate::UART;
1+
#![allow(unused)]
2+
3+
use crate::UART;
24
use core::ops::Range;
35
use rustsbi::{spec::binary::SbiRet, Console, Physical};
46
use spin::Once;

rustsbi-qemu/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ extern "C" fn rust_main(hartid: usize, opaque: usize) {
120120
.with_timer(&clint::Clint)
121121
.with_hsm(Hsm)
122122
.with_reset(qemu_test::get())
123-
.with_console(dbcn::get())
123+
// .with_console(dbcn::get())
124124
.build(),
125125
);
126126
}
@@ -343,7 +343,8 @@ type FixedRustSBI<'a> = RustSBI<
343343
Hsm,
344344
&'a qemu_test::QemuTest,
345345
Infallible,
346-
&'a dbcn::DBCN,
346+
Infallible,
347+
// &'a dbcn::DBCN,
347348
>;
348349

349350
struct Hsm;

test-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-testing = { git = "https://github.com/rustsbi/sbi-testing", rev = "7a5e920", features = [
11+
sbi-testing = { git = "https://github.com/rustsbi/sbi-testing", rev = "02aef6d", features = [
1212
"log",
1313
] }
1414
log = "0.4.17"

test-kernel/src/main.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,17 @@ extern "C" fn rust_main(hartid: usize, dtb_pa: usize) -> ! {
7070
| dtb physical address | {dtb_pa:#20x} |
7171
------------------------------------------------"
7272
);
73-
sbi_testing::Testing {
73+
let testing = sbi_testing::Testing {
7474
hartid,
7575
hart_mask: (1 << smp) - 1,
7676
hart_mask_base: 0,
7777
delay: frequency,
78+
};
79+
if testing.test() {
80+
sbi::system_reset(sbi::Shutdown, sbi::NoReason);
81+
} else {
82+
sbi::system_reset(sbi::Shutdown, sbi::SystemFailure);
7883
}
79-
.test();
80-
sbi::system_reset(sbi::Shutdown, sbi::NoReason);
8184
unreachable!()
8285
}
8386

0 commit comments

Comments
 (0)