The Pedigree Project
0.1
|
#include <state.h>
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 |
uintptr_t | getSyscallParameter (size_t n) const |
void | setSyscallReturnValue (uintptr_t val) |
ARMV7InterruptState () | |
ARMV7InterruptState (const ARMV7InterruptState &) | |
ARMV7InterruptState & | operator= (const ARMV7InterruptState &) |
~ARMV7InterruptState () | |
Public Attributes | |
uint32_t | m_usersp |
uint32_t | m_userlr |
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_r11 |
uint32_t | m_r12 |
uint32_t | m_lr |
uint32_t | m_pc |
uint32_t | m_spsr |
ARMV7 Interrupt State
Definition at line 30 of file armv7/state.h.
ARMV7InterruptState::ARMV7InterruptState | ( | ) |
ARMV7InterruptState::ARMV7InterruptState | ( | const ARMV7InterruptState & | is | ) |
The copy-constructor
Definition at line 34 of file armv7/state.cc.
References operator=().
|
inline |
|
inline |
|
inline |
Get the instruction-pointer of the next instruction that is executed after the interrupt is processed
Definition at line 166 of file armv7/state.h.
|
inline |
Get the interrupt number
Definition at line 199 of file armv7/state.h.
processor_register_t ARMV7InterruptState::getRegister | ( | size_t | index | ) | const |
Get a specific register
[in] | index | the index of the register (from 0 to getRegisterCount() - 1) |
Definition at line 69 of file armv7/state.cc.
References m_usersp.
size_t ARMV7InterruptState::getRegisterCount | ( | ) | const |
Get the number of registers
Definition at line 65 of file armv7/state.cc.
const char * ARMV7InterruptState::getRegisterName | ( | size_t | index | ) | const |
Get the name of a specific register
[in] | index | the index of the register (from 0 to getRegisterCount() - 1) |
Definition at line 113 of file armv7/state.cc.
|
inline |
Get the register's size in bytes
[in] | index | the index of the register (from 0 to getRegisterCount() - 1) |
Definition at line 182 of file armv7/state.h.
|
inline |
Get the stack-pointer before the interrupt occured
Definition at line 158 of file armv7/state.h.
References m_usersp.
|
inline |
Get the syscall function number
Definition at line 210 of file armv7/state.h.
|
inline |
Get the n'th parameter for this syscall.
Definition at line 215 of file armv7/state.h.
|
inline |
Get the syscall service number
Definition at line 205 of file armv7/state.h.
|
inline |
Did the interrupt happen in kernel-mode?
Definition at line 193 of file armv7/state.h.
ARMV7InterruptState & ARMV7InterruptState::operator= | ( | const ARMV7InterruptState & | is | ) |
The assignement operator
Definition at line 44 of file armv7/state.cc.
Referenced by ARMV7InterruptState().
|
inline |
Set the base-pointer
[in] | basePointer | the new base-pointer |
Definition at line 178 of file armv7/state.h.
|
inline |
Set the instruction-pointer
[in] | instructionPointer | the new instruction-pointer |
Definition at line 170 of file armv7/state.h.
|
inline |
Set the userspace stack-pointer
[in] | stackPointer | the new stack-pointer |
Definition at line 162 of file armv7/state.h.
References m_usersp.
uint32_t ARMV7InterruptState::m_usersp |
ARMV7 interrupt frame
Definition at line 113 of file armv7/state.h.
Referenced by getRegister(), getStackPointer(), and setStackPointer().