| /* |
| * Copyright 2018, Data61, CSIRO (ABN 41 687 119 230) |
| * |
| * SPDX-License-Identifier: BSD-2-Clause |
| */ |
| #include <autoconf.h> |
| |
| #include <stdio.h> |
| #include <stdlib.h> |
| #include <assert.h> |
| |
| #include <sel4/sel4.h> |
| |
| #include <simple-default/simple-default.h> |
| |
| #include <vspace/page.h> |
| |
| seL4_Error simple_default_get_irq(void *data, int irq, seL4_CNode root, seL4_Word index, uint8_t depth) { |
| return seL4_IRQControl_Get(seL4_CapIRQControl, irq, root, index, depth); |
| } |
| |
| void |
| simple_default_init_arch_simple(arch_simple_t *simple, void *data) |
| { |
| simple->data = data; |
| simple->irq = simple_default_get_irq; |
| } |
| |