20 #ifndef KERNEL_PROCESSOR_X86_COMMON_PROCESSORINFORMATION_H 21 #define KERNEL_PROCESSOR_X86_COMMON_PROCESSORINFORMATION_H 23 #define _PROCESSOR_INFORMATION_ONLY_WANT_PROCESSORID 25 #include "pedigree/kernel/compiler.h" 26 #include "pedigree/kernel/processor/ProcessorInformation.h" 27 #include "pedigree/kernel/processor/types.h" 58 void setTssSelector(uint16_t TssSelector);
61 void setTss(
void *Tss);
64 uint16_t getTssSelector()
const;
69 uint16_t getTlsSelector();
71 void setTlsSelector(uint16_t tls);
73 uintptr_t getKernelStack()
const;
74 void setKernelStack(uintptr_t stack);
75 Thread *getCurrentThread()
const;
76 void setCurrentThread(
Thread *pThread);
87 void setIds(
ProcessorId processorId, uint8_t apicId = 0);
The exception was caused by a hardware task switch.