summaryrefslogtreecommitdiff
path: root/interrupt/vectors_generic.cpp.j2
diff options
context:
space:
mode:
Diffstat (limited to 'interrupt/vectors_generic.cpp.j2')
-rw-r--r--interrupt/vectors_generic.cpp.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/interrupt/vectors_generic.cpp.j2 b/interrupt/vectors_generic.cpp.j2
new file mode 100644
index 0000000..26ef05d
--- /dev/null
+++ b/interrupt/vectors_generic.cpp.j2
@@ -0,0 +1,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 %}