The Pedigree Project  0.1
Public Member Functions | Private Member Functions | List of all members
MIPS64InterruptState Class Reference

#include <state.h>

+ Collaboration diagram for MIPS64InterruptState:

Public Member Functions

uintptr_t getStackPointer () const
 
void setStackPointer (uintptr_t stackPointer)
 
uintptr_t getInstructionPointer () const
 
void setInstructionPointer (uintptr_t instructionPointer)
 
uintptr_t getBasePointer () const
 
void setBasePointer (uintptr_t basePointer)
 
size_t getRegisterCount () const
 
processor_register_t getRegister (size_t index) const
 
const char * getRegisterName (size_t index) const
 
size_t getRegisterSize (size_t index) const
 
bool kernelMode () const
 
size_t getInterruptNumber () const
 

Private Member Functions

 MIPS64InterruptState ()
 
 MIPS64InterruptState (const MIPS64InterruptState &)
 
MIPS64InterruptStateoperator= (const MIPS64InterruptState &)
 
 ~MIPS64InterruptState ()
 

Detailed Description

MIPS64 Interrupt State

Definition at line 30 of file mips64/state.h.

Constructor & Destructor Documentation

MIPS64InterruptState::MIPS64InterruptState ( )
private

The default constructor

Note
NOT implemented
MIPS64InterruptState::MIPS64InterruptState ( const MIPS64InterruptState )
private

The copy-constructor

Note
NOT implemented
MIPS64InterruptState::~MIPS64InterruptState ( )
private

The destructor

Note
NOT implemented

Member Function Documentation

uintptr_t MIPS64InterruptState::getBasePointer ( ) const
inline

Get the base-pointer

Returns
the base-pointer

Definition at line 169 of file mips64/state.h.

uintptr_t MIPS64InterruptState::getInstructionPointer ( ) const
inline

Get the instruction-pointer of the next instruction that is executed after the interrupt is processed

Returns
the instruction-pointer

Definition at line 162 of file mips64/state.h.

size_t MIPS64InterruptState::getInterruptNumber ( ) const
inline

Get the interrupt number

Returns
the interrupt number

Definition at line 185 of file mips64/state.h.

processor_register_t MIPS64InterruptState::getRegister ( size_t  index) const

Get a specific register

Parameters
[in]indexthe index of the register (from 0 to getRegisterCount() - 1)
Returns
the value of the register
size_t MIPS64InterruptState::getRegisterCount ( ) const

Get the number of registers

Returns
the number of registers
const char* MIPS64InterruptState::getRegisterName ( size_t  index) const

Get the name of a specific register

Parameters
[in]indexthe index of the register (from 0 to getRegisterCount() - 1)
Returns
the name of the register
size_t MIPS64InterruptState::getRegisterSize ( size_t  index) const
inline

Get the register's size in bytes

Parameters
[in]indexthe index of the register (from 0 to getRegisterCount() - 1)
Returns
the register size in bytes

Definition at line 176 of file mips64/state.h.

uintptr_t MIPS64InterruptState::getStackPointer ( ) const
inline

Get the stack-pointer before the interrupt occured

Returns
the stack-pointer before the interrupt

Definition at line 155 of file mips64/state.h.

bool MIPS64InterruptState::kernelMode ( ) const
inline

Did the interrupt happen in kernel-mode?

Returns
true, if the interrupt happened in kernel-mode, false otherwise

Definition at line 181 of file mips64/state.h.

MIPS64InterruptState& MIPS64InterruptState::operator= ( const MIPS64InterruptState )
private

The assignement operator

Note
NOT implemented
void MIPS64InterruptState::setBasePointer ( uintptr_t  basePointer)
inline

Set the base-pointer

Parameters
[in]basePointerthe new base-pointer

Definition at line 173 of file mips64/state.h.

void MIPS64InterruptState::setInstructionPointer ( uintptr_t  instructionPointer)
inline

Set the instruction-pointer

Parameters
[in]instructionPointerthe new instruction-pointer

Definition at line 166 of file mips64/state.h.

void MIPS64InterruptState::setStackPointer ( uintptr_t  stackPointer)
inline

Set the userspace stack-pointer

Parameters
[in]stackPointerthe new stack-pointer

Definition at line 159 of file mips64/state.h.


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