blob: dd4d4cb6515f15c801ca6146fcf13cafeed28883 [file] [log] [blame]
#![no_std]
use libtock::result::TockResult;
use libtock::syscalls;
use matcha_config::*;
mod dprintf;
libtock_core::stack_size! {0x1000}
//------------------------------------------------------------------------------
#[libtock::main]
async fn main() -> TockResult<()> {
dprintf!("sw/matcha/app/src/main.rs::main()\n");
dprintf!("Booting sel4 from TockOS app!\n");
let _result = syscalls::command(DRIVER_NUM_ELF_LOADER, CMD_ELF_LOADER_BOOT_SEL4, 0, 0);
dprintf!("Booting sel4 from TockOS app done!\n");
Ok(())
}