cpu/cpu.h: add ROMCC guards

In order to use the generic microcode update code in the bootblock, cpu/cpu.h
needs ROMCC guards. Also, delete the unused struct device declaration and move
the struct bus declaration to where it's used.

Change-Id: I0cc731c555593946e931a680ec93994932530599
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/932
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Stefan Reinauer 2012-04-27 00:39:17 +02:00
parent ae5e11d7cd
commit ac8209a4b3
1 changed files with 3 additions and 2 deletions

View File

@ -1,11 +1,11 @@
#ifndef CPU_CPU_H #ifndef CPU_CPU_H
#define CPU_CPU_H #define CPU_CPU_H
struct device;
struct bus;
#include <arch/cpu.h> #include <arch/cpu.h>
#if !defined(__ROMCC__)
void cpu_initialize(void); void cpu_initialize(void);
struct bus;
void initialize_cpus(struct bus *cpu_bus); void initialize_cpus(struct bus *cpu_bus);
void secondary_cpu_init(void); void secondary_cpu_init(void);
@ -26,5 +26,6 @@ void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
extern struct cpu_driver cpu_drivers[]; extern struct cpu_driver cpu_drivers[];
/** end of compile time generated pci driver array */ /** end of compile time generated pci driver array */
extern struct cpu_driver ecpu_drivers[]; extern struct cpu_driver ecpu_drivers[];
#endif /* !__ROMCC__ */
#endif /* CPU_CPU_H */ #endif /* CPU_CPU_H */