From 9bfa237869ec3a75776926de7ffd4e7a1c4e03b9 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 14 Apr 2007 02:46:15 +0000 Subject: mpegplayer: Get it in better shape for dual core targets. Utilize the newly added cache stuff. Add a mutex to core shared buffer variables. I'd prefer to have a true spinlock there but this will do for the moment and protect the data. Nonetheless I can't seem to crash it on an e200 any longer and the display garbage is gone. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13153 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 1db0253..a059a8d 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -486,6 +486,12 @@ static const struct plugin_api rockbox_api = { detect_flashed_ramimage, detect_flashed_romimage, #endif + +#if NUM_CORES > 1 + spinlock_init, + spinlock_lock, + spinlock_unlock, +#endif }; int plugin_load(const char* plugin, void* parameter) -- cgit v1.1