Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .macro intr_stub nr
- .global intr_stub_\nr
- intr_stub_\nr:
- pushl $0
- pushl $\nr
- jmp intr_common_handler
- .endm
- intr_stub 0
- intr_stub 32
- .extern handle_interrupt
- intr_common_handler:
- push %ebp
- push %edi
- push %esi
- push %edx
- push %ecx
- push %ebx
- push %eax
- call handle_interrupt
- pop %eax
- pop %ebx
- pop %ecx
- pop %edx
- pop %esi
- pop %edi
- pop %ebp
- iret
Advertisement
Add Comment
Please, Sign In to add comment