#include <irq.h>
Collaboration diagram for Interrupts:

Public Member Functions | |
| void | init () |
| void | register_handler (unsigned char int_num, Int_handler &handler) |
| void | unregister_handler (unsigned char int_num, Int_handler &handler) |
| void | print () |
Protected Attributes | |
| Int_descriptor | int_table [INTERRUPT_COUNT] |
Static Protected Attributes | |
| const Size | ISR_SIZE = 9 |
There can be multiple handlers be interrupt. If a particular handler returns true when called, that indicates a context switch is requested.
|
|
Create an interrupt descriptor table and enable system interrupts.
|
|
|
Print interrupt handler information.
|
|
||||||||||||
|
Add a handler for a particular interrupt.
|
|
||||||||||||
|
Remove a handler for a particular interrupt.
|
|
|
|
|
|
2 pushes (4 bytes) + 1 jmp (5 bytes)
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman