diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-02-14 11:27:45 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-02-14 11:27:45 +0000 |
commit | b15aa47c56d4f8c6e4bf83fef48e7a764dd119a2 (patch) | |
tree | 90e95627f56397cb74e021269a3cb65dd4c6ba2c /apps/plugins | |
parent | 8f14357064d1b8734e2f4dbe2708ace26d5134d1 (diff) | |
download | rockbox-b15aa47c56d4f8c6e4bf83fef48e7a764dd119a2.tar.gz rockbox-b15aa47c56d4f8c6e4bf83fef48e7a764dd119a2.zip |
All kernel objects in code shared amongs targets (core, plugins, codecs) should be declared SHAREDBSS_ATTR as any core could potentially touch them even though they seem only to involve threads on one core. The exception is target code for particular CPUs where proper allocation is fixed. playlist.c was a little odd too-- use one mutex for the current playlist and a separate one for created playlists (still pondering the necessity of more than one).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29305 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/battery_bench.c | 2 | ||||
-rw-r--r-- | apps/plugins/mikmod/mikmod.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index 044db9ff1f..6a0493ceaa 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c | |||
@@ -266,7 +266,7 @@ static struct batt_info | |||
266 | #define BUF_ELEMENTS (sizeof(bat)/sizeof(struct batt_info)) | 266 | #define BUF_ELEMENTS (sizeof(bat)/sizeof(struct batt_info)) |
267 | 267 | ||
268 | static unsigned int thread_id; | 268 | static unsigned int thread_id; |
269 | static struct event_queue thread_q; | 269 | static struct event_queue thread_q SHAREDBSS_ATTR; |
270 | static bool in_usb_mode; | 270 | static bool in_usb_mode; |
271 | static unsigned int buf_idx; | 271 | static unsigned int buf_idx; |
272 | 272 | ||
diff --git a/apps/plugins/mikmod/mikmod.c b/apps/plugins/mikmod/mikmod.c index fe1768376e..c99d11d636 100644 --- a/apps/plugins/mikmod/mikmod.c +++ b/apps/plugins/mikmod/mikmod.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #define EV_EXIT 9999 | 31 | #define EV_EXIT 9999 |
32 | #define THREAD_STACK_SIZE DEFAULT_STACK_SIZE + 0x200 | 32 | #define THREAD_STACK_SIZE DEFAULT_STACK_SIZE + 0x200 |
33 | static unsigned int thread_id; | 33 | static unsigned int thread_id; |
34 | static struct event_queue thread_q; | 34 | static struct event_queue thread_q SHAREDBSS_ATTR; |
35 | /* use long for aligning */ | 35 | /* use long for aligning */ |
36 | unsigned long thread_stack[THREAD_STACK_SIZE/sizeof(long)]; | 36 | unsigned long thread_stack[THREAD_STACK_SIZE/sizeof(long)]; |
37 | #endif | 37 | #endif |