mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +00:00
kernel: fix build error in main.rs
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
97238861a1
commit
2ba9f69015
1 changed files with 0 additions and 20 deletions
|
|
@ -124,26 +124,6 @@ pub extern "C" fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
let child_pids = {
|
||||
let system_services = SystemServicesHandle::get();
|
||||
let mut child_count = 0;
|
||||
for process in system_services.processes {
|
||||
if process.ppid == 1 {
|
||||
child_count += 1;
|
||||
}
|
||||
}
|
||||
|
||||
let mut child_pids = [0; child_count];
|
||||
let mut idx = 0;
|
||||
for (process_idx, process) in system_services.processes.enumerate() {
|
||||
if process.ppid == 1 {
|
||||
child_pids[idx] = process_idx;
|
||||
idx += 1;
|
||||
}
|
||||
}
|
||||
child_pids
|
||||
};
|
||||
|
||||
let mut pid = None;
|
||||
loop {
|
||||
arch::irq::disable_all_irqs();
|
||||
|
|
|
|||
Loading…
Reference in a new issue