#![no_main] #![cfg_attr(target_os = "none", no_std)] fn simple(arg: usize) { rt::task::drop_privilege(); for _ in 0..100 { rt::task::yield_now(); } if arg == 1 { rt::trap(); } } rt::task!(simple(0), rt::stack::MIN, 0); rt::task!(simple(1), rt::stack::MIN, 0);