Subrata Banik has uploaded this change for review.

View Change

arch/x86: Make cpu_index() available for bootblock

This patch ensures cpu_index() is available for bootblock stage
as exception.c is now added in glk bootblock.

Change-Id: I02b2387eb601abe2d64ed20ebf8a98572befd26c
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
---
M src/arch/x86/include/arch/cpu.h
1 file changed, 0 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/25964/1
diff --git a/src/arch/x86/include/arch/cpu.h b/src/arch/x86/include/arch/cpu.h
index 5d44aae..c59cf2b 100644
--- a/src/arch/x86/include/arch/cpu.h
+++ b/src/arch/x86/include/arch/cpu.h
@@ -167,8 +167,6 @@
void smm_lock(void);
void smm_setup_structures(void *gnvs, void *tcg, void *smi1);

-#ifndef __SIMPLE_DEVICE__
-
struct device;

struct cpu_device_id {
@@ -218,7 +216,6 @@
ci = cpu_info();
return ci->index;
}
-#endif

#ifndef __ROMCC__ // romcc is segfaulting in some cases
struct cpuinfo_x86 {

To view, visit change 25964. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I02b2387eb601abe2d64ed20ebf8a98572befd26c
Gerrit-Change-Number: 25964
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik@intel.com>