| 1 |
|
| 2 |
|
| 3 |
#ifndef CPU_CPU_H |
| 4 |
#define CPU_CPU_H |
| 5 |
|
| 6 |
#include <arch/cpu.h> |
| 7 |
#include <stdint.h> |
| 8 |
|
| 9 |
void cpu_initialize(void); |
| 10 |
uintptr_t cpu_get_lapic_addr(void); |
| 11 |
struct bus; |
| 12 |
unsigned int cpu_phys_address_size(void); |
| 13 |
unsigned int soc_phys_address_size(void); |
| 14 |
|
| 15 |
#if ENV_RAMSTAGE |
| 16 |
#define __cpu_driver __attribute__((used, __section__(".rodata.cpu_driver"))) |
| 17 |
#else |
| 18 |
#define __cpu_driver __attribute__((unused)) |
| 19 |
#endif |
| 20 |
|
| 21 |
|
| 22 |
extern struct cpu_driver _cpu_drivers[]; |
| 23 |
|
| 24 |
extern struct cpu_driver _ecpu_drivers[]; |
| 25 |
|
| 26 |
#endif |