File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2586,31 +2586,17 @@ pub fn load_processes<C: Chip>(
25862586 let mut apps_in_flash_ptr = start_of_flash;
25872587 let mut app_memory_ptr = app_memory. as_mut_ptr ( ) ;
25882588 let mut app_memory_size = app_memory. len ( ) ;
2589- for i in 0 ..procs. len ( ) {
25902589 unsafe {
2591- let ( process , flash_offset , memory_offset ) = Process :: create (
2590+ Process :: create (
25922591 kernel,
25932592 chip,
25942593 apps_in_flash_ptr,
25952594 app_memory_ptr,
25962595 app_memory_size,
25972596 fault_response,
2598- i ,
2597+ 0 ,
25992598 ) ;
2600-
2601- if process. is_none ( ) {
2602- if flash_offset == 0 && memory_offset == 0 {
2603- break ;
2604- }
2605- } else {
2606- procs[ i] = process;
2607- }
2608-
2609- apps_in_flash_ptr = apps_in_flash_ptr. add ( flash_offset) ;
2610- app_memory_ptr = app_memory_ptr. add ( memory_offset) ;
2611- app_memory_size -= memory_offset;
26122599 }
2613- }
26142600}
26152601
26162602
You can’t perform that action at this time.
0 commit comments