diff options
Diffstat (limited to 'i686/isr.c')
-rw-r--r-- | i686/isr.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -17,30 +17,32 @@ abort_handler(struct interrupt_frame *frame) } __attribute__((interrupt)) void -syscall_handler(struct interrupt_frame *) +syscall_handler(__attribute__((unused)) struct interrupt_frame *frame) { - printf("syscall\n"); + unsigned int n; + asm volatile("mov %%eax, %0" : "=r"(n)); + printf("syscall %x\n, n"); abort(); } void pic_clear(unsigned char irq); __attribute__((interrupt)) void -irq0x00(struct interrupt_frame *) +irq0x00(__attribute__((unused)) struct interrupt_frame *frame) { pic_clear(0x00); } extern void ps2_keyboard_irq_handler(); __attribute__((interrupt)) void -irq0x01(struct interrupt_frame *) +irq0x01(__attribute__((unused)) struct interrupt_frame *frame) { ps2_keyboard_irq_handler(); pic_clear(0x01); } __attribute__((interrupt)) void -irq0x0c(struct interrupt_frame *) +irq0x0c(__attribute__((unused)) struct interrupt_frame *frame) { printf("irq 0x0c\n"); pic_clear(0x0c); |