feat(isr): use offset instead of huge struct for handler

This commit is contained in:
aliamelo committed 2021-07-16 14:07:04 +02:00
1 parent f258a08be0
commit b33bf5aef6
2 files changed
+1 -8

No files matched your search

-8
View File
@@ -44,14 +44,6 @@ struct idt_r
// by the isr. We can refactor this by offsetting esp before pushing it. // by the isr. We can refactor this by offsetting esp before pushing it.
struct int_args struct int_args
{ {
uint32_t edi;
uint32_t esi;
uint32_t ebp;
uint32_t esp;
uint32_t ebx;
uint32_t edx;
uint32_t ecx;
uint32_t eax;
uint32_t int_code; uint32_t int_code;
uint32_t err_code; uint32_t err_code;
} __attribute__ ((packed)); } __attribute__ ((packed));
+1
View File
@@ -4,6 +4,7 @@ isr:
pushal // save registers pushal // save registers
pushl %esp pushl %esp
add $32, (%esp)
call handle_interrupt call handle_interrupt
add $4, %esp add $4, %esp
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.