The Pedigree Project
0.1
|
#include <ProcessorInformation.h>
Public Member Functions | |
VirtualAddressSpace & | getVirtualAddressSpace () const |
void | setVirtualAddressSpace (VirtualAddressSpace &virtualAddressSpace) |
uintptr_t | getKernelStack () const |
void | setKernelStack (uintptr_t stack) |
Thread * | getCurrentThread () const |
void | setCurrentThread (Thread *pThread) |
PerProcessorScheduler & | getScheduler () |
Protected Member Functions | |
HostedProcessorInformation (ProcessorId processorId, uint8_t apicId=0) | |
virtual | ~HostedProcessorInformation () |
Private Member Functions | |
HostedProcessorInformation () | |
HostedProcessorInformation (const HostedProcessorInformation &) | |
HostedProcessorInformation & | operator= (const HostedProcessorInformation &) |
Private Attributes | |
ProcessorId | m_ProcessorId |
VirtualAddressSpace * | m_VirtualAddressSpace |
Thread * | m_pCurrentThread |
PerProcessorScheduler * | m_Scheduler |
uintptr_t | m_KernelStack |
Friends | |
class | Processor |
class | Multiprocessor |
Common hosted processor information structure
Definition at line 33 of file hosted/ProcessorInformation.h.
|
protected |
Construct a HostedProcessorInformation object
[in] | processorId | Identifier of the processor |
Definition at line 36 of file hosted/ProcessorInformation.cc.
References m_Scheduler.
|
protectedvirtual |
The destructor does nothing
Definition at line 48 of file hosted/ProcessorInformation.cc.
References m_Scheduler.
|
private |
Default constructor
|
private |
Copy-constructor
VirtualAddressSpace & HostedProcessorInformation::getVirtualAddressSpace | ( | ) | const |
Get the current processor's VirtualAddressSpace
Definition at line 53 of file hosted/ProcessorInformation.cc.
References VirtualAddressSpace::getKernelAddressSpace(), and m_VirtualAddressSpace.
|
private |
Assignment operator
void HostedProcessorInformation::setVirtualAddressSpace | ( | VirtualAddressSpace & | virtualAddressSpace | ) |
Set the current processor's VirtualAddressSpace
[in] | virtualAddressSpace | reference to the new VirtualAddressSpace |
Definition at line 61 of file hosted/ProcessorInformation.cc.
References m_KernelStack, m_pCurrentThread, m_Scheduler, m_VirtualAddressSpace, and WARNING.
|
private |
Kernel stack.
Definition at line 83 of file hosted/ProcessorInformation.h.
Referenced by setVirtualAddressSpace().
|
private |
The current thread
Definition at line 78 of file hosted/ProcessorInformation.h.
Referenced by setVirtualAddressSpace().
|
private |
Identifier of that processor
Definition at line 73 of file hosted/ProcessorInformation.h.
|
private |
The processor's scheduler.
Definition at line 80 of file hosted/ProcessorInformation.h.
Referenced by HostedProcessorInformation(), setVirtualAddressSpace(), and ~HostedProcessorInformation().
|
private |
The current VirtualAddressSpace
Definition at line 75 of file hosted/ProcessorInformation.h.
Referenced by getVirtualAddressSpace(), and setVirtualAddressSpace().