20#ifndef KERNEL_PROCESSOR_HOSTED_STATE_H
21#define KERNEL_PROCESSOR_HOSTED_STATE_H
22#include "pedigree/kernel/Log.h"
23#include "pedigree/kernel/compiler.h"
24#include "pedigree/kernel/processor/types.h"
71 processor_register_t
getRegister(
size_t index)
const;
99 inline void setFlags(uint64_t flags);
135 uintptr_t m_instructionPointer;
136 uintptr_t m_stackPointer;
177 processor_register_t
getRegister(
size_t index)
const;
198 inline void setSyscallReturnValue(uintptr_t val);
199 inline void setSyscallErrno(uintptr_t val);
204 uint64_t p1, p2, p3, p4, p5, p6;
283 return m_stackPointer;
286 m_stackPointer = stackPointer;
289 return m_instructionPointer;
292 m_instructionPointer = instructionPointer;
301 return sizeof(processor_register_t);
334 return sizeof(processor_register_t);
369void HostedSyscallState::setSyscallReturnValue(uintptr_t val) {
372void HostedSyscallState::setSyscallErrno(uintptr_t val) {
HostedInterruptState & operator=(const HostedInterruptState &)
size_t getInterruptNumber() const
uintptr_t getInterruptSource() const
processor_register_t getRegister(size_t index) const
uintptr_t getBasePointer() const
uintptr_t getInstructionPointer() const
HostedInterruptState(const HostedInterruptState &)
uintptr_t getStackPointer() const
void setInstructionPointer(uintptr_t instructionPointer)
void setFlags(uint64_t flags)
void setStackPointer(uintptr_t stackPointer)
size_t getRegisterSize(size_t index) const
uint64_t getFlags() const
static HostedInterruptState * construct(class HostedProcessorState &state, bool userMode)
void setBasePointer(uintptr_t basePointer)
size_t getRegisterCount() const
const char * getRegisterName(size_t index) const
HostedProcessorState & operator=(const HostedProcessorState &)
void setBasePointer(uintptr_t basePointer)
uintptr_t getInstructionPointer() const
uintptr_t getStackPointer() const
void setStackPointer(uintptr_t stackPointer)
uintptr_t getBasePointer() const
void setInstructionPointer(uintptr_t instructionPointer)
uintptr_t getInstructionPointer() const
uintptr_t getSyscallParameter(size_t n) const
void setBasePointer(uintptr_t basePointer)
const char * getRegisterName(size_t index) const
void setStackPointer(uintptr_t stackPointer)
size_t getRegisterSize(size_t index) const
size_t getRegisterCount() const
size_t getSyscallService() const
uintptr_t getStackPointer() const
uintptr_t getInstructionPointer() const
void setInstructionPointer(uintptr_t instructionPointer)
uintptr_t getBasePointer() const
processor_register_t getRegister(size_t index) const
size_t getSyscallNumber() const