Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .extern handle_interrupt
- intr_common_handler:
- // CPU-Zustand sichern
- push %ebp
- push %edi
- push %esi
- push %edx
- push %ecx
- push %ebx
- push %eax
- // Handler aufrufen
- push %esp
- call handle_interrupt
- add $4, %esp
- // CPU-Zustand wiederherstellen
- pop %eax
- pop %ebx
- pop %ecx
- pop %edx
- pop %esi
- pop %edi
- pop %ebp
- // Fehlercode und Interruptnummer vom Stack nehmen
- add $8, %esp
- // Ruecksprung zum unterbrochenen Code
- iret
Advertisement
Add Comment
Please, Sign In to add comment