Skip to content

Commit 540231a

Browse files
committed
param-elimination.
1 parent 76184a6 commit 540231a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tock/kernel/src/lib.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,13 +2585,7 @@ pub fn load_processes<C: Chip>(
25852585
) {
25862586
unsafe {
25872587
Process::create(
2588-
(),
25892588
chip,
2590-
(),
2591-
(),
2592-
0,
2593-
(),
2594-
0,
25952589
);
25962590
}
25972591
}
@@ -3065,13 +3059,7 @@ fn exceeded_check(size: usize, allocated: usize) -> &'static str { loop { } }
30653059
impl<C: 'static + Chip> Process<'a, C> {
30663060
#[allow(clippy::cast_ptr_alignment)]
30673061
crate unsafe fn create(
3068-
kernel: impl Sized,
30693062
chip: &'static C,
3070-
app_flash_address: impl Sized,
3071-
remaining_app_memory: impl Sized,
3072-
remaining_app_memory_size: impl Sized,
3073-
fault_response: impl Sized,
3074-
index: impl Sized,
30753063
) -> (Option<&'static dyn ProcessType>, usize, usize) {
30763064
let mut process: &mut Process<C> =
30773065
&mut *((&mut []).as_mut_ptr() as *mut Process<'static, C>);

0 commit comments

Comments
 (0)