OOStuBS - Technische Informatik II (TI-II)
2.4
|
Administrationseinheit für die Interruptweitergabe. Mehr ...
#include <interruptmanager.h>
Öffentliche Methoden | |
void | assign (int iNum, InterruptHandler &handler) |
Assign a handler to an interrupt. | |
![]() | |
bool | currentInterrupt (int &iNum) |
Fetch the currently active interrupt if there is one. | |
void | handle (int iNum) |
Führt den Handler für einen speziellen Interrupt aus. | |
InterruptStorage () | |
Standardkonstruktor. | |
![]() | |
void | ack (Interrupts interrupt) |
sendet ein "Acknowledgement" eines ausstehenden Interrupts | |
void | allow (Interrupts interrupt) |
Erlaubt einen speziellen Interrupt von einem Peripheriegerät. | |
void | forbid (Interrupts interrupt) |
verbietet einen speziellen Interrupt eines Peripheriegerätes | |
PIC () | |
Standardkonstruktor. | |
~PIC () | |
Destructor globally disabling interrupts. |
Weitere Geerbte Elemente | |
![]() | |
enum | Interrupts { timer = 32, keyboard = 33, pic2 = 34, serial2 = 35, serial1 = 36, soundcard = 37, floppy = 38, parallelport = 39, rtc = 40, misc = 41, ata4 = 42, ata3 = 43, secondps2 = 44, fpu = 45, ata1 = 46, ata2 = 47 } |
externe Interruptquellen Mehr ... | |
![]() | |
static bool | iNum2Index (int iNum, unsigned int &index) |
![]() | |
InterruptHandler * | mHandler [mMaxINum-mMinINum] |
Array von Zeigern auf Handler-Objekte. | |
Panic | panic |
![]() | |
static const int | mMaxINum = MAX_INTERRUPT_NUMBER |
static const int | mMinINum = MIN_INTERRUPT_NUMBER |
Administrationseinheit für die Interruptweitergabe.
Diese Klasse abstrahiert die Verwaltung und Ausführung von Interrupts. Sie ermöglicht dem System für jeden Hardware- und jeden Softwareinterrupt eine entsprechende Behandlungsroutine zu vergeben und auszuführen.
Definiert in Zeile 36 der Datei interruptmanager.h.
void InterruptManager::assign | ( | int | iNum, |
InterruptHandler & | handler | ||
) |
Assign a handler to an interrupt.
This method assign a handler object to an interrupt and activates the interrupt.
iNum | the interrupt's number |
handler | a reference to the Handler object |
Erneute Implementation von InterruptStorage.
Definiert in Zeile 15 der Datei interruptmanager.cc.