From b2faf33fad80fd7ecb884d3ad40917f5a629a5b2 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 11 Sep 2014 21:57:41 -0500 Subject: [PATCH] arm64: intiailize GIC for each CPU For every CPU that comes online inialize the GIC for that CPU. This allows the per-cpu register state to be initialized for every CPU that comes online. BUG=chrome-os-partner:31945 BRANCH=None TEST=Built and booted to kernel on ryu. Change-Id: I58d0ffcfe65cffc6a4dd2678c041219e1e698aaf Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/217513 Reviewed-by: Furquan Shaikh --- src/arch/arm64/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/arch/arm64/cpu.c b/src/arch/arm64/cpu.c index e0a609b131..9dfc4ca96c 100644 --- a/src/arch/arm64/cpu.c +++ b/src/arch/arm64/cpu.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "cpu-internal.h" static struct cpu_info cpu_infos[CONFIG_MAX_CPUS]; @@ -90,6 +91,9 @@ static void init_this_cpu(void *arg) cpu_set_device_operations(dev); + /* Initialize the GIC. */ + gic_init(); + if (dev->ops != NULL && dev->ops->init != NULL) { dev->initialized = 1; printk(BIOS_DEBUG, "%s init\n", dev_path(dev));