1/*
2 * Copyright 2018, 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 <autoconf.h>
13
14#include <stdio.h>
15#include <stdlib.h>
16#include <assert.h>
17
18#include <sel4/sel4.h>
19
20#include <simple-default/simple-default.h>
21
22#include <vspace/page.h>
23
24seL4_Error simple_default_get_irq(void *data, int irq, seL4_CNode root, seL4_Word index, uint8_t depth) {
25    return seL4_IRQControl_Get(seL4_CapIRQControl, irq, root, index, depth);
26}
27
28void
29simple_default_init_arch_simple(arch_simple_t *simple, void *data)
30{
31    simple->data = data;
32    simple->irq = simple_default_get_irq;
33}
34
35