summaryrefslogtreecommitdiff
path: root/interrupt/vectors_generic.cpp.j2
blob: 26ef05d3c816965f7dc72e94e891327781a4bfa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "interrupt.h"

{% for type, entries in interrupts.items() %}
    interrupt::vector_t vectors_{{ type }}[] = {
        {% for i in range(entries | max + 1 if entries else 0) %}
            {% if i in entries %}
                interrupt::handler<interrupt::{{ type }}::{{ entries[i] }}>,
            {% else %}
                0,
            {% endif %}
        {% endfor %}
    };

{% endfor %}