1/* 2 * Copyright 2019, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the BSD 2-Clause license. Note that NO WARRANTY is provided. 8 * See "LICENSE_BSD2.txt" for details. 9 * 10 * @TAG(DATA61_BSD) 11 */ 12#include <sel4/sel4.h> 13#include <sel4runtime.h> 14#include <sel4runtime/start.h> 15 16void __sel4runtime_start_main( 17 int (*main)(), 18 unsigned long argc, 19 char const *const *argv, 20 char const *const *envp, 21 auxv_t const auxv[] 22) 23{ 24 __sel4runtime_load_env(argc, argv, envp, auxv); 25 26 sel4runtime_exit(main(argc, argv, envp)); 27} 28