File tree Expand file tree Collapse file tree 1 file changed +1
-44
lines changed Expand file tree Collapse file tree 1 file changed +1
-44
lines changed Original file line number Diff line number Diff line change @@ -128,17 +128,6 @@ pub mod pmpcfg0 {
128
128
129
129
_set ( 1 << ( 7 + ( index * 8 ) ) ) ;
130
130
}
131
-
132
- #[ inline]
133
- pub unsafe fn clear_lock ( index : usize ) {
134
- #[ cfg( riscv32) ]
135
- assert ! ( index < 4 ) ;
136
-
137
- #[ cfg( riscv64) ]
138
- assert ! ( index < 8 ) ;
139
-
140
- _clear ( 1 << ( 7 + ( index * 8 ) ) ) ;
141
- }
142
131
}
143
132
144
133
/// Physical memory protection configuration
@@ -198,17 +187,6 @@ pub mod pmpcfg1 {
198
187
199
188
_set ( 1 << ( 7 + ( index * 8 ) ) ) ;
200
189
}
201
-
202
- #[ inline]
203
- pub unsafe fn clear_lock ( index : usize ) {
204
- #[ cfg( riscv32) ]
205
- assert ! ( index < 4 ) ;
206
-
207
- #[ cfg( riscv64) ]
208
- assert ! ( index < 8 ) ;
209
-
210
- _clear ( 1 << ( 7 + ( index * 8 ) ) ) ;
211
- }
212
190
}
213
191
214
192
/// Physical memory protection configuration
@@ -268,17 +246,6 @@ pub mod pmpcfg2 {
268
246
269
247
_set ( 1 << ( 7 + ( index * 8 ) ) ) ;
270
248
}
271
-
272
- #[ inline]
273
- pub unsafe fn clear_lock ( index : usize ) {
274
- #[ cfg( riscv32) ]
275
- assert ! ( index < 4 ) ;
276
-
277
- #[ cfg( riscv64) ]
278
- assert ! ( index < 8 ) ;
279
-
280
- _clear ( 1 << ( 7 + ( index * 8 ) ) ) ;
281
- }
282
249
}
283
250
284
251
/// Physical memory protection configuration
@@ -337,14 +304,4 @@ pub mod pmpcfg3 {
337
304
338
305
_set ( 1 << ( 7 + ( index * 8 ) ) ) ;
339
306
}
340
-
341
- #[ inline]
342
- pub unsafe fn clear_lock ( index : usize ) {
343
- #[ cfg( riscv32) ]
344
- assert ! ( index < 4 ) ;
345
-
346
- #[ cfg( riscv64) ]
347
- assert ! ( index < 8 ) ;
348
- _clear ( 1 << ( 7 + ( index * 8 ) ) ) ;
349
- }
350
- }
307
+ }
You can’t perform that action at this time.
0 commit comments