//! K2110 healthy service: answers every probe PID1 issues until PID1 says //! the positive window is complete. #![no_std] #![no_main] use turkos_os_feature_user::{call, exit}; const WAIT: u64 = 16; const ANSWER: u64 = 17; #[unsafe(no_mangle)] #[unsafe(link_section = ".text._start")] pub extern "C" fn _start(_: u64, _: u64) -> ! { loop { let r = call(WAIT, 0, 0, 0); match r >> 32 { 0 => {} 1 => { call(ANSWER, r & 0xffff_ffff, 0, 0); } 4 => exit(0), _ => exit(9), } } }