1/*
2 * Copyright 2017, 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 <sel4/sel4.h>
14
15/*? macros.show_includes(me.instance.type.includes) ?*/
16
17/*- set notification = alloc('notification', seL4_NotificationObject, write=True) -*/
18/*- set badge = configuration[me.instance.name].get('%s_attributes' % me.interface.name) -*/
19/*- if badge is not none -*/
20    /*- set badge = badge.strip('"') -*/
21    /*- do cap_space.cnode[notification].set_badge(int(badge, 0)) -*/
22/*- endif -*/
23
24int /*? me.interface.name ?*/__run(void) {
25    /* Nothing required. */
26    return 0;
27}
28
29void /*? me.interface.name ?*/_emit_underlying(void) {
30    seL4_Signal(/*? notification ?*/);
31}
32