From 536800a09c1abc36ac74e17cebb2cd7865ed85a0 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Tue, 3 Nov 2020 13:47:29 +0100 Subject: [PATCH] zephyr: remove infinite recursion on Broadwell Broadwell support with Zephyr had only been dry-coded, it has never been tested, and it contains an infinite recursion bug: functions platform_timer_get() and arch_timer_get_system() call each other infinitely. Break the recursion formally, until a proper fix is available. Signed-off-by: Guennadi Liakhovetski --- zephyr/wrapper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 9609dae45d3d..531d6d65e860 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -281,7 +281,8 @@ uint64_t platform_timer_get(struct timer *timer) return time; #elif defined(CONFIG_SOC_SERIES_INTEL_ADSP_BROADWELL) - return arch_timer_get_system(timer); + // FIXME! + return 0; #else /* CAVS versions */ return shim_read64(SHIM_DSPWC);