The Pedigree Project  0.1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
NMFaultHandler Class Reference

#include <NMFaultHandler.h>

+ Inheritance diagram for NMFaultHandler:
+ Collaboration diagram for NMFaultHandler:

Public Member Functions

bool initialise ()
 
bool initialiseProcessor ()
 
virtual void interrupt (size_t interruptNumber, InterruptState &state)
 
void threadTerminated (class Thread *)
 

Static Public Member Functions

static NMFaultHandlerinstance ()
 

Private Member Functions

 NMFaultHandler () INITIALISATION_ONLY
 
 NMFaultHandler (const NMFaultHandler &)
 
virtual ~InterruptHandler ()
 

Static Private Attributes

static NMFaultHandler m_Instance
 

Detailed Description

The x86 Device Not Present(NM) Exception handler.

Definition at line 32 of file NMFaultHandler.h.

Constructor & Destructor Documentation

NMFaultHandler::NMFaultHandler ( )
private

The default constructor.

Definition at line 313 of file x64/NMFaultHandler.cc.

References Thread::state(), and netif::state.

Referenced by instance().

+ Here is the caller graph for this function:

NMFaultHandler::NMFaultHandler ( const NMFaultHandler )
private

The copy constructor. Note not implemented.

Member Function Documentation

bool NMFaultHandler::initialise ( )

Register the NMFaultHandler with the InterruptManager.

Returns
true if sucessful, false otherwise.

Definition at line 66 of file x64/NMFaultHandler.cc.

References initialiseProcessor(), InterruptManager::instance(), and InterruptManager::registerInterruptHandler().

Referenced by instance().

+ Here is the caller graph for this function:

bool NMFaultHandler::initialiseProcessor ( )

Initialise the current processor's floating point state.

Definition at line 78 of file x64/NMFaultHandler.cc.

References Processor::cpuid().

Referenced by initialise(), and instance().

+ Here is the caller graph for this function:

static NMFaultHandler& NMFaultHandler::instance ( )
inlinestatic

Get the NMFaultHandler instance

Returns
the NMFaultHandler instance.

Definition at line 37 of file NMFaultHandler.h.

References INITIALISATION_ONLY, initialise(), initialiseProcessor(), interrupt(), m_Instance, and NMFaultHandler().

Referenced by Thread::~Thread().

+ Here is the caller graph for this function:

void NMFaultHandler::interrupt ( size_t  nInterruptNumber,
InterruptState &  state 
)
virtual

Called when the handler is registered with the interrupt manager and the interrupt occurred

Parameters
[in]nInterruptNumberthe interrupt number
[in]statereference to the state before the interrupt

Implements InterruptHandler.

Definition at line 144 of file x64/NMFaultHandler.cc.

References ERROR, Processor::information(), and Thread::state().

Referenced by instance().

+ Here is the caller graph for this function:

Member Data Documentation

NMFaultHandler NMFaultHandler::m_Instance
staticprivate

The NMFaultHandler instance

Definition at line 66 of file NMFaultHandler.h.

Referenced by instance().


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