StuBS
Interrupt Handling

The interrupt subsystem. More...

Classes

class  Gate
 Class of objects that are capable of handling interrupts. More...
 
class  Guarded
 A handy interface to protect critical sections. More...
 

Functions

void interrupt_handler (Core::Interrupt::Vector vector, InterruptContext *context)
 High-Level Interrupt Handling. More...
 

Detailed Description

The interrupt subsystem.

The interrupt subsystem of StubBS contains all functionality to accept interrupts from the hardware and process them. In later exercises the interrupts will enable applications to execute core functionality (system calls). The entry point for the interrupt subsystem is the function 'interrupt_entry_VECTOR' (in interrupt/handler.asm).

Function Documentation

◆ interrupt_handler()

void interrupt_handler ( Core::Interrupt::Vector  vector,
InterruptContext context 
)

High-Level Interrupt Handling.

Main interrupt handling routine of the system. This function is called by the corresponding interrupt_entry_VECTOR function (located in interrupt/handler.asm) with disabled interrupts.

Parameters
vectornumber of the interrupt
contextPointer to interrupt context (on stack).