143_baremetal_hints.toy (362B)
1 fn __user_main(): i64 { 2 // CPU hints and memory barriers shared by all native backends: single 3 // instructions with no architectural side effect at user level, so they 4 // execute inline and the function still returns its sentinel. 5 @cpu_nop(); 6 @cpu_yield(); 7 @dmb(.inner); 8 @dsb(.full); 9 return 42; 10 } 11 12 fn main(): i32 { return __user_main() as i32; }