CS350 COS
COS
Loading...
Searching...
No Matches
mp.h
Go to the documentation of this file.
1
2#ifndef __MACHINE_MP_H__
3#define __MACHINE_MP_H__
4
5#define CPUSTATE_NOT_PRESENT 0
6#define CPUSTATE_BOOTED 1
7#define CPUSTATE_HALTED 2
8#define CPUSTATE_MAX 2
9
10void MP_Init();
11void MP_InitAP();
12void MP_SetState(int state);
13int MP_GetCPUs();
14
15/* Cross Calls */
16typedef int (*CrossCallCB)(void *);
17void MP_CrossCallTrap();
18int MP_CrossCall(CrossCallCB cb, void *arg);
19
21#define THISCPU LAPIC_CPU
22
23#endif /* __MACHINE_MP__ */
24
int MP_GetCPUs()
Definition: mp.c:134
void MP_CrossCallTrap()
Definition: mp.c:140
void MP_InitAP()
Definition: mp.c:119
void MP_SetState(int state)
Definition: mp.c:127
int(* CrossCallCB)(void *)
Definition: mp.h:16
uint32_t LAPIC_CPU()
Definition: lapic.c:93
int MP_CrossCall(CrossCallCB cb, void *arg)
Definition: mp.c:168
void MP_Init()
Definition: mp.c:91
unsigned int uint32_t
Definition: types.h:12