summaryrefslogtreecommitdiff
path: root/firmware/test
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-02-14 11:27:45 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-02-14 11:27:45 +0000
commitb15aa47c56d4f8c6e4bf83fef48e7a764dd119a2 (patch)
tree90e95627f56397cb74e021269a3cb65dd4c6ba2c /firmware/test
parent8f14357064d1b8734e2f4dbe2708ace26d5134d1 (diff)
downloadrockbox-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 'firmware/test')
-rw-r--r--firmware/test/i2c/main.c2
-rw-r--r--firmware/test/kernel/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/test/i2c/main.c b/firmware/test/i2c/main.c
index 7a2ff49fcb..ad684829fb 100644
--- a/firmware/test/i2c/main.c
+++ b/firmware/test/i2c/main.c
@@ -288,7 +288,7 @@ bool filling; /* We are filling the buffer with data from disk */
288 288
289 289
290 290
291struct event_queue mpeg_queue; 291struct event_queue mpeg_queue SHAREDBSS_ATTR;
292 292
293 293
294 294
diff --git a/firmware/test/kernel/main.c b/firmware/test/kernel/main.c
index 6a20551bb1..df0e72156a 100644
--- a/firmware/test/kernel/main.c
+++ b/firmware/test/kernel/main.c
@@ -31,7 +31,7 @@ unsigned int s2[256];
31void t1(void); 31void t1(void);
32void t2(void); 32void t2(void);
33 33
34struct event_queue main_q; 34struct event_queue main_q SHAREDBSS_ATTR;
35 35
36int tick_add_task(void (*f)(void)); 36int tick_add_task(void (*f)(void));
37 37