Skip to content

Commit e693a23

Browse files
committed
cleanup
Signed-off-by: YdrMaster <ydrml@hotmail.com>
1 parent 9c3b131 commit e693a23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rustsbi-qemu/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ unsafe extern "C" fn _start() -> ! {
5656
locate_stack = sym trap_stack::locate,
5757
rust_main = sym rust_main,
5858
trap = sym trap_vec,
59-
options(noreturn)
59+
options(noreturn),
6060
)
6161
}
6262

@@ -120,7 +120,7 @@ extern "C" fn rust_main(hartid: usize, opaque: usize) {
120120
.with_reset(qemu_test::get())
121121
.build(),
122122
);
123-
};
123+
}
124124
// 设置并打印 pmp
125125
set_pmp(board_info);
126126
hart_csr_utils::print_pmps();
@@ -374,7 +374,7 @@ impl rustsbi::Hsm for Hsm {
374374
}
375375

376376
fn hart_suspend(&self, suspend_type: u32, _resume_addr: usize, _opaque: usize) -> SbiRet {
377-
use rustsbi::spec::hsm::*;
377+
use rustsbi::spec::hsm::{HART_SUSPEND_TYPE_NON_RETENTIVE, HART_SUSPEND_TYPE_RETENTIVE};
378378
if matches!(
379379
suspend_type,
380380
HART_SUSPEND_TYPE_NON_RETENTIVE | HART_SUSPEND_TYPE_RETENTIVE

0 commit comments

Comments
 (0)