Module bern_kernel::syscall [−][src]
Expand description
System calls.
Example
Launch a task that wait for 100 iterations and the terminates.
fn main() -> ! { /*...*/ sched::init(); Task::new() .static_stack(kernel::alloc_static_stack!(512)) .spawn(move || { for a in 0..100 { bern_kernel::sleep(100); } bern_kernel::task_exit(); }); }