20 #ifndef KERNEL_PROCESSOR_HOSTED_STATE_H 21 #define KERNEL_PROCESSOR_HOSTED_STATE_H 23 #include "pedigree/kernel/Log.h" 24 #include "pedigree/kernel/compiler.h" 25 #include "pedigree/kernel/processor/types.h" 70 processor_register_t
getRegister(
size_t index)
const;
95 inline void setFlags(uint64_t flags);
130 uintptr_t m_instructionPointer;
131 uintptr_t m_stackPointer;
173 processor_register_t
getRegister(
size_t index)
const;
188 inline size_t getSyscallService()
const;
191 inline size_t getSyscallNumber()
const;
193 inline uintptr_t getSyscallParameter(
size_t n)
const;
194 inline void setSyscallReturnValue(uintptr_t val);
195 inline void setSyscallErrno(uintptr_t val);
200 uint64_t p1, p2, p3, p4, p5;
273 return m_stackPointer;
277 m_stackPointer = stackPointer;
281 return m_instructionPointer;
285 m_instructionPointer = instructionPointer;
297 return sizeof(processor_register_t);
341 return sizeof(processor_register_t);
366 void HostedSyscallState::setSyscallReturnValue(uintptr_t val)
370 void HostedSyscallState::setSyscallErrno(uintptr_t val)
uintptr_t getStackPointer() const
size_t getSyscallNumber() const
void setStackPointer(uintptr_t stackPointer)
void setBasePointer(uintptr_t basePointer)
uintptr_t getStackPointer() const
size_t getRegisterSize(size_t index) const
void setInstructionPointer(uintptr_t instructionPointer)
size_t getInterruptNumber() const
uintptr_t getStackPointer() const
uintptr_t getInstructionPointer() const
void setBasePointer(uintptr_t basePointer)
size_t getRegisterCount() const
void setStackPointer(uintptr_t stackPointer)
size_t getRegisterSize(size_t index) const
HostedProcessorState & operator=(const HostedProcessorState &)
uintptr_t getInstructionPointer() const
size_t getSyscallService() const
void setBasePointer(uintptr_t basePointer)
processor_register_t getRegister(size_t index) const
void setInstructionPointer(uintptr_t instructionPointer)
const char * getRegisterName(size_t index) const
void setInstructionPointer(uintptr_t instructionPointer)
static HostedInterruptState * construct(class HostedProcessorState &state, bool userMode)
uintptr_t getBasePointer() const
uintptr_t getBasePointer() const
HostedInterruptState & operator=(const HostedInterruptState &)
void setFlags(uint64_t flags)
uintptr_t getBasePointer() const
uintptr_t getInstructionPointer() const
uintptr_t getSyscallParameter(size_t n) const
void setStackPointer(uintptr_t stackPointer)
uint64_t getFlags() const