blob: 325f09d32aaaf87efcc4e041399fd8e983609be7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef __KERNEL_CPUMGR_H
#define __KERNEL_CPUMGR_H
#include <kernel/types.h>
class CpuManager
{
public:
enum { MAXCPUS = 8 };
/** @fn getCurrentCPU
* Returns a pointer to the current CPU structure by using the
* task structure in SPRG3.
*/
static cpu_t* getCurrentCPU();
static void init();
protected:
CpuManager();
~CpuManager() {};
/** @fn startCPU
* Starts the requested CPU. Default of -1 implies current CPU.
*/
void startCPU(ssize_t i = -1);
private:
cpu_t* iv_cpus[MAXCPUS];
};
#endif
|