24 |
/* Global variable that tells us how many cpu's we have detected. */ |
/* Global variable that tells us how many cpu's we have detected. */ |
25 |
int ncpus = 1; |
int ncpus = 1; |
26 |
|
|
27 |
|
/* Global variable that tells us which CPU is the master CPU. */ |
28 |
|
int master_cpu = 0; |
29 |
|
|
30 |
struct processor processor_array [NCPUS]; |
struct processor processor_array [NCPUS]; |
31 |
|
|
32 |
/* Initialize processor array. */ |
/* Initialize processor array. */ |
38 |
|
|
39 |
/* The bootstrap processor is always running (at start). */ |
/* The bootstrap processor is always running (at start). */ |
40 |
PROCESSOR_CURRENT()->state = PROCESSOR_STATE_RUNNING; |
PROCESSOR_CURRENT()->state = PROCESSOR_STATE_RUNNING; |
41 |
|
master_cpu = CPU_CURRENT (); |
42 |
} |
} |
43 |
|
|
44 |
/* Idle thread function. Does nothing right now. |
/* Idle thread function. Does nothing right now. |