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 /firmware/target/arm | |
parent | 8f14357064d1b8734e2f4dbe2708ace26d5134d1 (diff) |
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/target/arm')
-rw-r--r-- | firmware/target/arm/ata-sd-pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/ata-sd-pp.c b/firmware/target/arm/ata-sd-pp.c index b200dc4c22..f83bb60566 100644 --- a/firmware/target/arm/ata-sd-pp.c +++ b/firmware/target/arm/ata-sd-pp.c @@ -182,7 +182,7 @@ static struct sd_card_status sd_status[NUM_DRIVES] = static long sd_stack [(DEFAULT_STACK_SIZE*2 + 0x1c0)/sizeof(long)]; static const char sd_thread_name[] = "ata/sd"; static struct mutex sd_mtx SHAREDBSS_ATTR; -static struct event_queue sd_queue; +static struct event_queue sd_queue SHAREDBSS_ATTR; #ifdef HAVE_HOTSWAP static int sd_first_drive = 0; |