summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-12-31 22:40:09 +0000
committerAidan MacDonald <amachronic@protonmail.com>2023-01-02 13:38:08 -0500
commite8e781b00655fb18e8c1dc1378b9deeaea1c31ba (patch)
tree3ab1a8e97ffd7e27b4051f454c5c7148b3a08bb9
parent84fe501f53f966894b226172faa50b9fd0d651f5 (diff)
downloadrockbox-e8e781b00655fb18e8c1dc1378b9deeaea1c31ba.tar.gz
rockbox-e8e781b00655fb18e8c1dc1378b9deeaea1c31ba.zip
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
-rw-r--r--apps/plugins/lua/rocklib_events.c2
1 files changed, 1 insertions, 1 deletions
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)
423 0, 423 0,
424 EVENT_THREAD 424 EVENT_THREAD
425 IF_PRIO(, PRIORITY_SYSTEM) 425 IF_PRIO(, PRIORITY_SYSTEM)
426 IF_COP(, COP)); 426 IF_COP(, CPU));
427 427
428 /* Timer is used to poll waiting events */ 428 /* Timer is used to poll waiting events */
429 if (!rb->timer_register(1, NULL, EV_TIMER_FREQ, rev_timer_isr IF_COP(, CPU))) 429 if (!rb->timer_register(1, NULL, EV_TIMER_FREQ, rev_timer_isr IF_COP(, CPU)))