3; @brief Handler
for the idt (the isr). Gets data ready
for and calls the C exception handler
5; @author Matheus Boscariol
7; @copyright (c) 2026 Matheus Boscariol. Licensed under GNU AGPL-3.0.
16 push qword 0 ; dummy error code, so every frame looks the same
17 push qword %1 ; vector number
24 push qword %1 ; the CPU already pushed the error code
81; Saves the current frame and calls the exception handler
100 mov rdi, rsp ; first argument: pointer to the saved frame
119 add rsp, 16 ; drop the vector number and error code
131section .note.GNU-stack noalloc noexec nowrite progbits
void exception_handler(struct interrupt_frame *frame)
Prints information about an exception.