The Pedigree Project
0.1
|
#include <state.h>
Public Member Functions | |
X86ProcessorState () | |
X86ProcessorState (const X86ProcessorState &x) | |
X86ProcessorState (const X86InterruptState &x) | |
X86ProcessorState & | operator= (const X86ProcessorState &x) |
X86ProcessorState & | operator= (const X86InterruptState &x) |
~X86ProcessorState () | |
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) |
void | setSyscallReturnValue (uintptr_t val) |
Public Attributes | |
uint32_t | edi |
uint32_t | esi |
uint32_t | ebp |
uint32_t | ebx |
uint32_t | edx |
uint32_t | ecx |
uint32_t | eax |
uint32_t | eip |
uint32_t | eflags |
uint32_t | esp |
x86 ProcessorState
Definition at line 167 of file x86/state.h.
|
inline |
Default constructor initializes everything with 0
Definition at line 337 of file x86/state.h.
|
inline |
Copy-constructor
Definition at line 341 of file x86/state.h.
|
inline |
Construct a ProcessorState object from an InterruptState object
[in] | x | reference to the InterruptState object |
Definition at line 346 of file x86/state.h.
|
inline |
Destructor does nothing
Definition at line 380 of file x86/state.h.
|
inline |
Get the base-pointer
Definition at line 400 of file x86/state.h.
References ebp.
|
inline |
Get the instruction-pointer of the next instruction that is executed after the interrupt is processed
Definition at line 392 of file x86/state.h.
References eip.
|
inline |
Get the stack-pointer before the interrupt occured
Definition at line 384 of file x86/state.h.
References esp.
Referenced by X86InterruptState::construct().
|
inline |
|
inline |
Assignment from InterruptState
[in] | reference | to the InterruptState |
Definition at line 366 of file x86/state.h.
References eax, ebp, ebx, ecx, edi, edx, eflags, eip, esi, esp, X86InterruptState::getStackPointer(), X86InterruptState::m_Eax, X86InterruptState::m_Ebp, X86InterruptState::m_Ebx, X86InterruptState::m_Ecx, X86InterruptState::m_Edi, X86InterruptState::m_Edx, X86InterruptState::m_Eflags, X86InterruptState::m_Eip, and X86InterruptState::m_Esi.
|
inline |
Set the base-pointer
[in] | basePointer | the new base-pointer |
Definition at line 404 of file x86/state.h.
|
inline |
Set the instruction-pointer
[in] | instructionPointer | the new instruction-pointer |
Definition at line 396 of file x86/state.h.
References eip.
|
inline |
Set the userspace stack-pointer
[in] | stackPointer | the new stack-pointer |
Definition at line 388 of file x86/state.h.
References esp.
uint32_t X86ProcessorState::eax |
The EAX general purpose register
Definition at line 223 of file x86/state.h.
Referenced by X86InterruptState::construct(), operator=(), and setBasePointer().
uint32_t X86ProcessorState::ebp |
The base-pointer register
Definition at line 215 of file x86/state.h.
Referenced by X86InterruptState::construct(), getBasePointer(), operator=(), and setBasePointer().
uint32_t X86ProcessorState::ebx |
The EBX general purpose register
Definition at line 217 of file x86/state.h.
Referenced by X86InterruptState::construct(), and operator=().
uint32_t X86ProcessorState::ecx |
The ECX general purpose register
Definition at line 221 of file x86/state.h.
Referenced by X86InterruptState::construct(), and operator=().
uint32_t X86ProcessorState::edi |
The EDI general purpose register
Definition at line 211 of file x86/state.h.
Referenced by X86InterruptState::construct(), and operator=().
uint32_t X86ProcessorState::edx |
The EDX general purpose register
Definition at line 219 of file x86/state.h.
Referenced by X86InterruptState::construct(), and operator=().
uint32_t X86ProcessorState::eflags |
uint32_t X86ProcessorState::eip |
The instruction pointer
Definition at line 225 of file x86/state.h.
Referenced by X86InterruptState::construct(), getInstructionPointer(), operator=(), and setInstructionPointer().
uint32_t X86ProcessorState::esi |
The ESI general purpose register
Definition at line 213 of file x86/state.h.
Referenced by X86InterruptState::construct(), and operator=().
uint32_t X86ProcessorState::esp |
The stack-pointer
Definition at line 229 of file x86/state.h.
Referenced by X86InterruptState::construct(), getStackPointer(), operator=(), and setStackPointer().