The Pedigree Project  0.1
Public Member Functions | Public Attributes | List of all members
ARM926EInterruptState Class Reference

#include <state.h>

+ Collaboration diagram for ARM926EInterruptState:

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
 
size_t getSyscallService () const
 
size_t getSyscallNumber () const
 
 ARM926EInterruptState ()
 
 ARM926EInterruptState (const ARM926EInterruptState &)
 
ARM926EInterruptStateoperator= (const ARM926EInterruptState &)
 
 ~ARM926EInterruptState ()
 

Public Attributes

uint32_t m_r0
 
uint32_t m_r1
 
uint32_t m_r2
 
uint32_t m_r3
 
uint32_t m_r4
 
uint32_t m_r5
 
uint32_t m_r6
 
uint32_t m_r7
 
uint32_t m_r8
 
uint32_t m_r9
 
uint32_t m_r10
 
uint32_t m_Fp
 
uint32_t m_r12
 
uint32_t m_Sp
 
uint32_t m_Lnk
 
uint32_t m_Pc
 
uint32_t m_Cpsr
 

Detailed Description

ARM926E Interrupt State

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

Constructor & Destructor Documentation

ARM926EInterruptState::ARM926EInterruptState ( )

The default constructor

Note
NOT implemented

Definition at line 26 of file arm_926e/state.cc.

ARM926EInterruptState::ARM926EInterruptState ( const ARM926EInterruptState is)

The copy-constructor

Note
NOT implemented

Definition at line 32 of file arm_926e/state.cc.

References operator=().

ARM926EInterruptState::~ARM926EInterruptState ( )
inline

The destructor

Note
NOT implemented

Definition at line 105 of file arm_926e/state.h.

Member Function Documentation

uintptr_t ARM926EInterruptState::getBasePointer ( ) const
inline

Get the base-pointer

Returns
the base-pointer

Definition at line 170 of file arm_926e/state.h.

uintptr_t ARM926EInterruptState::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 163 of file arm_926e/state.h.

size_t ARM926EInterruptState::getInterruptNumber ( ) const
inline

Get the interrupt number

Returns
the interrupt number

Definition at line 195 of file arm_926e/state.h.

processor_register_t ARM926EInterruptState::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

Definition at line 67 of file arm_926e/state.cc.

References m_r0.

size_t ARM926EInterruptState::getRegisterCount ( ) const

Get the number of registers

Returns
the number of registers

Definition at line 63 of file arm_926e/state.cc.

const char * ARM926EInterruptState::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

Definition at line 109 of file arm_926e/state.cc.

size_t ARM926EInterruptState::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 178 of file arm_926e/state.h.

uintptr_t ARM926EInterruptState::getStackPointer ( ) const
inline

Get the stack-pointer before the interrupt occured

Returns
the stack-pointer before the interrupt

Definition at line 156 of file arm_926e/state.h.

size_t ARM926EInterruptState::getSyscallNumber ( ) const
inline

Get the syscall function number

Returns
the syscall function number

Definition at line 206 of file arm_926e/state.h.

size_t ARM926EInterruptState::getSyscallService ( ) const
inline

Get the syscall service number

Returns
the syscall service number

Definition at line 201 of file arm_926e/state.h.

bool ARM926EInterruptState::kernelMode ( ) const
inline

Did the interrupt happen in kernel-mode?

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

Definition at line 189 of file arm_926e/state.h.

ARM926EInterruptState & ARM926EInterruptState::operator= ( const ARM926EInterruptState is)

The assignement operator

Note
NOT implemented

Definition at line 41 of file arm_926e/state.cc.

References m_r0.

Referenced by ARM926EInterruptState().

+ Here is the caller graph for this function:

void ARM926EInterruptState::setBasePointer ( uintptr_t  basePointer)
inline

Set the base-pointer

Parameters
[in]basePointerthe new base-pointer

Definition at line 174 of file arm_926e/state.h.

void ARM926EInterruptState::setInstructionPointer ( uintptr_t  instructionPointer)
inline

Set the instruction-pointer

Parameters
[in]instructionPointerthe new instruction-pointer

Definition at line 167 of file arm_926e/state.h.

void ARM926EInterruptState::setStackPointer ( uintptr_t  stackPointer)
inline

Set the userspace stack-pointer

Parameters
[in]stackPointerthe new stack-pointer

Definition at line 160 of file arm_926e/state.h.

Member Data Documentation

uint32_t ARM926EInterruptState::m_r0

ARM926E Registers and State

Definition at line 110 of file arm_926e/state.h.

Referenced by getRegister(), and operator=().


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