[coreboot] New patch to review for coreboot: 93fef85 cpu/cpu.h: add ROMCC guards
Stefan Reinauer (stefan.reinauer@coreboot.org)
gerrit at coreboot.org
Fri Apr 27 01:07:15 CEST 2012
Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/932
-gerrit
commit 93fef85dc9f8e732c1905cf53828ee5782e43df1
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date: Fri Apr 27 00:39:17 2012 +0200
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 at google.com>
---
src/include/cpu/cpu.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/include/cpu/cpu.h b/src/include/cpu/cpu.h
index cca2be1..c2113c1 100644
--- a/src/include/cpu/cpu.h
+++ b/src/include/cpu/cpu.h
@@ -1,11 +1,11 @@
#ifndef CPU_CPU_H
#define CPU_CPU_H
-struct device;
-struct bus;
#include <arch/cpu.h>
+#if !defined(__ROMCC__)
void cpu_initialize(void);
+struct bus;
void initialize_cpus(struct bus *cpu_bus);
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[];
/** end of compile time generated pci driver array */
extern struct cpu_driver ecpu_drivers[];
+#endif /* !__ROMCC__ */
#endif /* CPU_CPU_H */
More information about the coreboot
mailing list