summaryrefslogtreecommitdiff
path: root/src/arch/arm64/cpu.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-09-17 11:51:41 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-03-28 07:05:12 +0100
commit74ff69feefaf3a34ad458ee641c68e1b62edd8f5 (patch)
treef9f75205ff53da63ee4299eb16200d6f2425e9af /src/arch/arm64/cpu.c
parentcf5b627725bbbe9da5156f334ca00859a6ebde94 (diff)
downloadcoreboot-74ff69feefaf3a34ad458ee641c68e1b62edd8f5.tar.xz
arm64: add cpu_is_bsp() concept
It's helpful to know if the current running CPU is the BSP. Therefore, provide that semantic. BUG=chrome-os-partner:32082 BRANCH=None TEST=Built and booted to kernel. Change-Id: I18cb8ab5149c3337e22b1f6046b1af266be7e47c Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: b390dc70b658c207cd3b64408713ec4cddab3172 Original-Change-Id: I3d5518d1f6d6a78b14f25bb7ef79727605064561 Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/218653 Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/9083 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/arch/arm64/cpu.c')
-rw-r--r--src/arch/arm64/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/arm64/cpu.c b/src/arch/arm64/cpu.c
index c0dc3c3fa2..a263e1b873 100644
--- a/src/arch/arm64/cpu.c
+++ b/src/arch/arm64/cpu.c
@@ -27,6 +27,7 @@
#include "cpu-internal.h"
static struct cpu_info cpu_infos[CONFIG_MAX_CPUS];
+struct cpu_info *bsp_cpu_info;
static inline struct cpu_info *cpu_info_for_cpu(unsigned int id)
{