Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Interrupts Class Reference

This class represents the interrupt descriptor table (IDT), and allows callers to register and unregister interrupt handlers. More...

#include <irq.h>

Collaboration diagram for Interrupts:

Collaboration graph
[legend]
List of all members.

Public Methods

void init ()
void register_handler (unsigned char int_num, Handler_func handler)
void unregister_handler (unsigned char int_num)

Protected Attributes

Int_descriptor int_table [INTERRUPT_COUNT]

Static Protected Attributes

const unsigned int ISR_SIZE = 9

Detailed Description

This class represents the interrupt descriptor table (IDT), and allows callers to register and unregister interrupt handlers.


Member Function Documentation

void Interrupts::init  
 

Create an interrupt descriptor table and enable system interrupts.

void Interrupts::register_handler unsigned char    int_num,
Handler_func    handler
 

Set the handler for a particular interrupt.

void Interrupts::unregister_handler unsigned char    int_num
 

Remove the handler for a particular interrupt.


Member Data Documentation

Int_descriptor Interrupts::int_table[INTERRUPT_COUNT] [protected]
 

const unsigned int Interrupts::ISR_SIZE = 9 [static, protected]
 


The documentation for this class was generated from the following files:

Torsion Operating System, Copyright (C) 2000-2002 Dan Helfman