#include <state.h>
|
class | HostedProcessorState |
|
class | HostedInterruptManager |
|
class | PageFaultHandler |
|
x64 Interrupt State
Definition at line 31 of file hosted/state.h.
HostedInterruptState::HostedInterruptState |
( |
| ) |
|
|
private |
The copy-constructor
- Note
- NOT implemented
HostedInterruptState::~HostedInterruptState |
( |
| ) |
|
|
private |
Construct a dummy interruptstate on the stack given in 'state', which when executed will set the processor to 'state'.
Definition at line 71 of file hosted/state.cc.
uintptr_t HostedInterruptState::getBasePointer |
( |
| ) |
const |
|
inline |
uint64_t HostedInterruptState::getFlags |
( |
| ) |
const |
|
inline |
Get the flags register
- Returns
- the flags register
Definition at line 309 of file hosted/state.h.
uintptr_t HostedInterruptState::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 279 of file hosted/state.h.
size_t HostedInterruptState::getInterruptNumber |
( |
| ) |
const |
|
inline |
Get the interrupt number
- Returns
- the interrupt number
Definition at line 304 of file hosted/state.h.
References which.
processor_register_t HostedInterruptState::getRegister |
( |
size_t |
index | ) |
const |
size_t HostedInterruptState::getRegisterCount |
( |
| ) |
const |
Get the number of registers
- Returns
- the number of registers
Definition at line 36 of file hosted/state.cc.
const char * HostedInterruptState::getRegisterName |
( |
size_t |
index | ) |
const |
Get the name of a specific register
- Parameters
-
- Returns
- the name of the register
Definition at line 50 of file hosted/state.cc.
size_t HostedInterruptState::getRegisterSize |
( |
size_t |
index | ) |
const |
|
inline |
Get the register's size in bytes
- Parameters
-
- Returns
- the register size in bytes
Definition at line 295 of file hosted/state.h.
uintptr_t HostedInterruptState::getStackPointer |
( |
| ) |
const |
|
inline |
Get the stack-pointer before the interrupt occured
- Returns
- the stack-pointer before the interrupt
Definition at line 271 of file hosted/state.h.
bool HostedInterruptState::kernelMode |
( |
| ) |
const |
|
inline |
Did the interrupt happen in kernel-mode?
- Returns
- true, if the interrupt happened in kernel-mode, false otherwise
Definition at line 300 of file hosted/state.h.
The assignement operator
- Note
- NOT implemented
void HostedInterruptState::setBasePointer |
( |
uintptr_t |
basePointer | ) |
|
|
inline |
void HostedInterruptState::setFlags |
( |
uint64_t |
flags | ) |
|
|
inline |
void HostedInterruptState::setInstructionPointer |
( |
uintptr_t |
instructionPointer | ) |
|
|
inline |
Set the instruction-pointer
- Parameters
-
[in] | instructionPointer | the new instruction-pointer |
Definition at line 283 of file hosted/state.h.
void HostedInterruptState::setStackPointer |
( |
uintptr_t |
stackPointer | ) |
|
|
inline |
Set the userspace stack-pointer
- Parameters
-
[in] | stackPointer | the new stack-pointer |
Definition at line 275 of file hosted/state.h.
uint64_t HostedInterruptState::extra |
|
private |
uintptr_t HostedInterruptState::m_basePointer |
|
private |
uint64_t HostedInterruptState::meta |
|
private |
Third argument to the sigaction handler (has meaning for certain signals such as SIGSEGV).
Definition at line 126 of file hosted/state.h.
Referenced by getRegister().
uint64_t HostedInterruptState::state |
|
private |
uint64_t HostedInterruptState::which |
|
private |
The documentation for this class was generated from the following files: