From e8e781b00655fb18e8c1dc1378b9deeaea1c31ba Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 31 Dec 2022 22:40:09 +0000 Subject: [PATCH] lua: rocklib_events fix Do not spawn threads on COP as PP lacks cache coherency between cores, making it unsafe to access cacheable memory that might be accessed by the other core. Change-Id: Idf910e9cc9dad3f0bf5bdb63800ed4abaa97558a --- apps/plugins/lua/rocklib_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/lua/rocklib_events.c b/apps/plugins/lua/rocklib_events.c index 0cdec20213..52e87f3d61 100644 --- a/apps/plugins/lua/rocklib_events.c +++ b/apps/plugins/lua/rocklib_events.c @@ -423,7 +423,7 @@ static void init_event_thread(bool init, struct event_data *ev_data) 0, EVENT_THREAD IF_PRIO(, PRIORITY_SYSTEM) - IF_COP(, COP)); + IF_COP(, CPU)); /* Timer is used to poll waiting events */ if (!rb->timer_register(1, NULL, EV_TIMER_FREQ, rev_timer_isr IF_COP(, CPU)))