StuBS
Plugbox Namespace Reference

Object-oriented abstraction of an device interrupt table. More...

Functions

void assign (Core::Interrupt::Vector vector, Gate *gate)
 Register a Gate object to handle a specific interrupt. More...
 
Gatereport (Core::Interrupt::Vector vector)
 Query the Gate object for a specific interrupt. More...
 

Detailed Description

Object-oriented abstraction of an device interrupt table.

This allows you to specify the device handler for each hardware and software interrupt and processor exception. Each device source is represented by a Gate object. These are located in an array with 256 elements, using the index as the vector number.

Function Documentation

◆ assign()

void Plugbox::assign ( Core::Interrupt::Vector  vector,
Gate gate 
)

Register a Gate object to handle a specific interrupt.

Parameters
vectorInterrupt vector handled by the handler routine
gateObject with the handler routine
Todo:
Implement Method

◆ report()

Gate * Plugbox::report ( Core::Interrupt::Vector  vector)

Query the Gate object for a specific interrupt.

Parameters
vectorInterrupt vector number
Returns
Reference to the registered Gate object
Todo:
Implement Method