File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ unsafe extern "C" fn _start() -> ! {
56
56
locate_stack = sym trap_stack:: locate,
57
57
rust_main = sym rust_main,
58
58
trap = sym trap_vec,
59
- options( noreturn)
59
+ options( noreturn) ,
60
60
)
61
61
}
62
62
@@ -120,7 +120,7 @@ extern "C" fn rust_main(hartid: usize, opaque: usize) {
120
120
. with_reset ( qemu_test:: get ( ) )
121
121
. build ( ) ,
122
122
) ;
123
- } ;
123
+ }
124
124
// 设置并打印 pmp
125
125
set_pmp ( board_info) ;
126
126
hart_csr_utils:: print_pmps ( ) ;
@@ -374,7 +374,7 @@ impl rustsbi::Hsm for Hsm {
374
374
}
375
375
376
376
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 } ;
378
378
if matches ! (
379
379
suspend_type,
380
380
HART_SUSPEND_TYPE_NON_RETENTIVE | HART_SUSPEND_TYPE_RETENTIVE
You can’t perform that action at this time.
0 commit comments