feat: lunadbg GDB plugin to ease kernel debugging process.
[lunaix-os.git] / lunaix-os / scripts / templates / i386 / i386_intrhnds.S.j2
1 /* Generated from {{ data["template"] }}. Do NOT modify */
2
3 #define __ASM__
4 .macro isr_template vector, no_error_code=1
5     .global _asm_isr\vector
6     .type _asm_isr\vector, @function
7     _asm_isr\vector:
8         .if \no_error_code
9             pushl $0x0
10         .endif
11         pushl $\vector
12         jmp interrupt_wrapper
13 .endm
14 .section .text
15 {% for isrdef in data["exception"]["ivdefs"] %}
16 {% if isrdef["has_errcode"] %}
17     isr_template {{ isrdef["iv"] }}, no_error_code=0
18 {% else %}
19     isr_template {{ isrdef["iv"] }}, no_error_code=1
20 {% endif %}
21 {% endfor %}