Function guardian

Function guardian

Placement in the overall structure

Module
guard
Time of creation
Task 2
Files
guardian.cc

Description

The guardian function represents the central interrupt handling routine. After the occurrence of an interrupt, the processor first jumps to the wrapper routine registered in the vector table. The wrapper routine then calls guardian, passing the number of the corresponding interrupt as a parameter. All interrupts lead therefore always to the call of guardian.

Functions

void guardian (unsigned int slot)
The guardian function is responsible for device-specific interrupt handling. For this purpose the corresponding Gate object is determined with the help of the interrupt number in the global Plugbox object plugbox and its trigger() method is executed.