#![no_std] #![no_main] use turkos_os_feature_user::{call,exit}; const REFUSED:u64=1<<63; #[unsafe(no_mangle)]#[unsafe(link_section=".text._start")] pub extern "C" fn _start(_:u64,_:u64)->!{ if call(16,1,0,0)!=REFUSED|22{exit(0xbad1)} if call(17,0,0,0)!=0{exit(0xbad2)} // A valid shutdown request transfers control to the kernel continuation; // receiving a normal return here cannot stand for completed shutdown. let _=call(16,0,0,0);exit(0xbad3) }