xref: /aosp_15_r20/external/coreboot/src/include/cpu/cpu.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef CPU_CPU_H
4 #define CPU_CPU_H
5 
6 #include <arch/cpu.h>  /* IWYU pragma: export */
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 /** start of compile time generated pci driver array */
22 extern struct cpu_driver _cpu_drivers[];
23 /** end of compile time generated pci driver array */
24 extern struct cpu_driver _ecpu_drivers[];
25 
26 #endif /* CPU_CPU_H */
27