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

#include <state.h>

+ Collaboration diagram for HostedProcessorState:

Public Member Functions

 HostedProcessorState ()
 
 HostedProcessorState (const HostedProcessorState &)
 
 HostedProcessorState (const HostedInterruptState &)
 
 HostedProcessorState (const HostedSyscallState &)
 
HostedProcessorState & operator= (const HostedProcessorState &)
 
HostedProcessorState & operator= (const HostedInterruptState &)
 
HostedProcessorState & operator= (const HostedSyscallState &)
 
 ~HostedProcessorState ()
 
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)
 

Public Attributes

uint64_t state
 

Detailed Description

x64 ProcessorState

Definition at line 212 of file hosted/state.h.

Constructor & Destructor Documentation

◆ HostedProcessorState() [1/4]

HostedProcessorState::HostedProcessorState ( )
inline

Default constructor initializes everything with 0

Definition at line 376 of file hosted/state.h.

◆ HostedProcessorState() [2/4]

HostedProcessorState::HostedProcessorState ( const HostedProcessorState &  x)
inline

Copy-constructor

Definition at line 377 of file hosted/state.h.

◆ HostedProcessorState() [3/4]

HostedProcessorState::HostedProcessorState ( const HostedInterruptState &  x)
inline

Construct a ProcessorState object from an InterruptState object

Parameters
[in]xreference to the InterruptState object

Definition at line 378 of file hosted/state.h.

◆ HostedProcessorState() [4/4]

HostedProcessorState::HostedProcessorState ( const HostedSyscallState &  x)
inline

Construct a ProcessorState object from an SyscallState object

Parameters
[in]xreference to the SyscallState object

Definition at line 379 of file hosted/state.h.

◆ ~HostedProcessorState()

HostedProcessorState::~HostedProcessorState ( )
inline

Destructor does nothing

Definition at line 391 of file hosted/state.h.

Member Function Documentation

◆ getBasePointer()

uintptr_t HostedProcessorState::getBasePointer ( ) const
inline

Get the base-pointer

Returns
the base-pointer

Definition at line 401 of file hosted/state.h.

◆ getInstructionPointer()

uintptr_t HostedProcessorState::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 397 of file hosted/state.h.

◆ getStackPointer()

uintptr_t HostedProcessorState::getStackPointer ( ) const
inline

Get the stack-pointer before the interrupt occured

Returns
the stack-pointer before the interrupt

Definition at line 393 of file hosted/state.h.

◆ operator=() [1/3]

HostedProcessorState & HostedProcessorState::operator= ( const HostedInterruptState &  x)
inline

Assignment from InterruptState

Parameters
[in]referenceto the InterruptState

Definition at line 384 of file hosted/state.h.

◆ operator=() [2/3]

HostedProcessorState & HostedProcessorState::operator= ( const HostedProcessorState &  x)
inline

Assignment operator

Definition at line 380 of file hosted/state.h.

◆ operator=() [3/3]

HostedProcessorState & HostedProcessorState::operator= ( const HostedSyscallState &  x)
inline

Assignment from SyscallState

Parameters
[in]referenceto the SyscallState

Definition at line 388 of file hosted/state.h.

◆ setBasePointer()

void HostedProcessorState::setBasePointer ( uintptr_t  basePointer)
inline

Set the base-pointer

Parameters
[in]basePointerthe new base-pointer

Definition at line 404 of file hosted/state.h.

◆ setInstructionPointer()

void HostedProcessorState::setInstructionPointer ( uintptr_t  instructionPointer)
inline

Set the instruction-pointer

Parameters
[in]instructionPointerthe new instruction-pointer

Definition at line 400 of file hosted/state.h.

◆ setStackPointer()

void HostedProcessorState::setStackPointer ( uintptr_t  stackPointer)
inline

Set the userspace stack-pointer

Parameters
[in]stackPointerthe new stack-pointer

Definition at line 396 of file hosted/state.h.

Member Data Documentation

◆ state

uint64_t HostedProcessorState::state

Definition at line 258 of file hosted/state.h.


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