//! K2110 unresponsive service: stays alive and keeps polling, but never //! answers a probe. It exits when PID1 requests a restart or gives up. #![no_std] #![no_main] use turkos_os_feature_user::{call, exit}; const WAIT: u64 = 16; #[unsafe(no_mangle)] #[unsafe(link_section = ".text._start")] pub extern "C" fn _start(_: u64, _: u64) -> ! { loop { match call(WAIT, 0, 0, 0) >> 32 { 0 | 1 => {} 2 => exit(2), 3 => exit(3), _ => exit(9), } } }