1/*
2 * Copyright 2020, 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
13#include <platsupport/io.h>
14#include <vka/vka.h>
15#include <simple/simple.h>
16#include <sel4utils/vspace.h>
17
18#define CAMKES_DYNAMIC_INIT_MODULE_DEFINE(init_func)                   \
19    static_assert(init_func != NULL, "Supplied init_func is NULL!");            \
20    USED SECTION("_dynamic_init") camkes_dynamic_module_init_fn_t init_func##_ref = init_func;
21
22typedef int (*camkes_dynamic_module_init_fn_t)(ps_io_ops_t *io_ops, vka_t *vka, simple_t *camkes_simple, vspace_t *vspace);
23
24