|
FreeNOS
|
#include <CoreManager.h>
Public Types | |
| enum | Result { Success, IOError, NotFound, InvalidArgument } |
| Result codes. More... | |
Public Member Functions | |
| CoreManager () | |
| Constructor. More... | |
| List< uint > & | getCores () |
| Get list of core identities. More... | |
| virtual Result | initialize ()=0 |
| Initialize the CoreManager. More... | |
| virtual Result | discover ()=0 |
| Discover processors. More... | |
| virtual Result | boot (CoreInfo *info)=0 |
| Boot a processor. More... | |
Protected Attributes | |
| List< uint > | m_cores |
| List of core ids found. More... | |
Generic Core Manager.
Definition at line 36 of file CoreManager.h.
| enum CoreManager::Result |
Result codes.
| Enumerator | |
|---|---|
| Success | |
| IOError | |
| NotFound | |
| InvalidArgument | |
Definition at line 45 of file CoreManager.h.
| CoreManager::CoreManager | ( | ) |
Constructor.
Definition at line 20 of file CoreManager.cpp.
Boot a processor.
| info | CoreInfo object pointer. |
Implemented in IntelACPI, IntelMP, and SunxiCpuConfig.
|
pure virtual |
Get list of core identities.
Definition at line 24 of file CoreManager.cpp.
References m_cores.
Referenced by CoreServer::bootAll(), CoreServer::getCoreCount(), CoreServer::prepareCoreInfo(), CoreServer::setupChannels(), and CoreServer::test().
|
pure virtual |
Initialize the CoreManager.
Implemented in IntelACPI, IntelMP, and SunxiCpuConfig.
List of core ids found.
Definition at line 91 of file CoreManager.h.
Referenced by SunxiCpuConfig::discover(), IntelMP::discover(), IntelACPI::discover(), getCores(), IntelMP::parseEntry(), and IntelACPI::scanAPIC().
1.8.17