File tree Expand file tree Collapse file tree 7 files changed +44
-20
lines changed Expand file tree Collapse file tree 7 files changed +44
-20
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ publish = false
9
9
10
10
[dependencies ]
11
11
sbi-rt = " 0.0.2"
12
- riscv = " 0.9.0 "
12
+ riscv = " 0.10.1 "
13
13
uart_16550 = " 0.2"
14
14
rcore-console = " 0.0.0"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ edition = "2021"
19
19
[dependencies ]
20
20
rustsbi = " 0.3.0"
21
21
sbi-spec = { version = " 0.0.4" , features = [" legacy" ] }
22
- riscv = " 0.9.0 "
22
+ riscv = " 0.10.1 "
23
23
spin = " 0.9"
24
24
uart_16550 = " 0.2"
25
25
rcore-console = " 0.0.0"
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ pub(crate) fn parse(opaque: usize) -> BoardInfo {
32
32
const MEMORY : & str = "memory" ;
33
33
const SOC : & str = "soc" ;
34
34
const UART : & str = "uart" ;
35
+ const SERIAL : & str = "serial" ;
35
36
const TEST : & str = "test" ;
36
37
const CLINT : & str = "clint" ;
37
38
@@ -61,7 +62,11 @@ pub(crate) fn parse(opaque: usize) -> BoardInfo {
61
62
StepOver
62
63
}
63
64
} else if current == Str :: from ( SOC ) {
64
- if name. starts_with ( UART ) || name. starts_with ( TEST ) || name. starts_with ( CLINT ) {
65
+ if name. starts_with ( UART )
66
+ || name. starts_with ( SERIAL )
67
+ || name. starts_with ( TEST )
68
+ || name. starts_with ( CLINT )
69
+ {
65
70
StepInto
66
71
} else {
67
72
StepOver
@@ -80,7 +85,7 @@ pub(crate) fn parse(opaque: usize) -> BoardInfo {
80
85
}
81
86
DtbObj :: Property ( Property :: Reg ( mut reg) ) => {
82
87
let node = ctx. name ( ) ;
83
- if node. starts_with ( UART ) {
88
+ if node. starts_with ( UART ) || node . starts_with ( SERIAL ) {
84
89
ans. uart = reg. next ( ) . unwrap ( ) ;
85
90
StepOut
86
91
} else if node. starts_with ( TEST ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ publish = false
10
10
[dependencies ]
11
11
sbi-testing = { version = " 0.0.1" , features = [" log" ] }
12
12
log = " 0.4.17"
13
- riscv = " 0.9.0 "
13
+ riscv = " 0.10.1 "
14
14
spin = " 0.9"
15
15
uart_16550 = " 0.2"
16
16
rcore-console = " 0.0.0"
Original file line number Diff line number Diff line change @@ -121,14 +121,16 @@ impl BoardInfo {
121
121
} else if ctx. name ( ) == Str :: from ( "cpus" ) && name. starts_with ( "cpu@" ) {
122
122
ans. smp += 1 ;
123
123
StepOver
124
- } else if ctx. name ( ) == Str :: from ( "soc" ) && name. starts_with ( "uart" ) {
124
+ } else if ctx. name ( ) == Str :: from ( "soc" )
125
+ && ( name. starts_with ( "uart" ) || name. starts_with ( "serial" ) )
126
+ {
125
127
StepInto
126
128
} else {
127
129
StepOver
128
130
}
129
131
}
130
132
DtbObj :: Property ( Property :: Reg ( mut reg) ) => {
131
- if ctx. name ( ) . starts_with ( "uart" ) {
133
+ if ctx. name ( ) . starts_with ( "uart" ) || ctx . name ( ) . starts_with ( "serial" ) {
132
134
ans. uart = reg. next ( ) . unwrap ( ) . start ;
133
135
}
134
136
StepOut
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ publish = false
9
9
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10
10
11
11
[dependencies ]
12
- clap = { version = " 4.0 " , features = [" derive" ] }
12
+ clap = { version = " 4.1 " , features = [" derive" ] }
13
13
os-xtask-utils = " 0.0.0"
14
- once_cell = " 1.16 "
14
+ once_cell = " 1.17 "
You can’t perform that action at this time.
0 commit comments