blob: 33062f635ec28a0440f05ab110c3a6ebcbce2b74 [file] [log] [blame]
/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#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;
}