diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-26 12:48:43 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-26 12:48:43 +0100 |
| commit | 786bd02b01d80e335d4445698d721213a1884ff5 (patch) | |
| tree | f10b97cca2e03c279cd5884919c23de03d3e7223 /kernel/inactive/smp.h | |
| parent | aad4bfe0261ea623342adc392728281be5062967 (diff) | |
some cleanup
Diffstat (limited to 'kernel/inactive/smp.h')
| -rw-r--r-- | kernel/inactive/smp.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/inactive/smp.h b/kernel/inactive/smp.h new file mode 100644 index 0000000..8737ffc --- /dev/null +++ b/kernel/inactive/smp.h @@ -0,0 +1,20 @@ +#ifndef SMP_H +#define SMP_H + +#define SMP_MAX_PROC 32 + +typedef struct +{ + + uint8_t boot; //which processor in array is bsp + // (boot strap processor) + + uint8_t processors; // total number of usable processors + + uint32_t local_apic_address;// same for every processor + + uint32_t local_apic_id[SMP_MAX_PROC]; // unique for every processor + +}smp_processors; + +#endif |
