summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata_mmc.c
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/drivers/ata_mmc.c
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/drivers/ata_mmc.c')
-rw-r--r--firmware/drivers/ata_mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c
index dfc63021c9..fc2efcd3e4 100644
--- a/firmware/drivers/ata_mmc.c
+++ b/firmware/drivers/ata_mmc.c
@@ -90,7 +90,7 @@ static long last_disk_activity = -1;
90 90
91/* private variables */ 91/* private variables */
92 92
93static struct mutex mmc_mutex; 93static struct mutex mmc_mutex SHAREDBSS_ATTR;
94 94
95#ifdef HAVE_HOTSWAP 95#ifdef HAVE_HOTSWAP
96static long mmc_stack[((DEFAULT_STACK_SIZE*2) + 0x800)/sizeof(long)]; 96static long mmc_stack[((DEFAULT_STACK_SIZE*2) + 0x800)/sizeof(long)];
@@ -98,7 +98,7 @@ static long mmc_stack[((DEFAULT_STACK_SIZE*2) + 0x800)/sizeof(long)];
98static long mmc_stack[(DEFAULT_STACK_SIZE*2)/sizeof(long)]; 98static long mmc_stack[(DEFAULT_STACK_SIZE*2)/sizeof(long)];
99#endif 99#endif
100static const char mmc_thread_name[] = "mmc"; 100static const char mmc_thread_name[] = "mmc";
101static struct event_queue mmc_queue; 101static struct event_queue mmc_queue SHAREDBSS_ATTR;
102static bool initialized = false; 102static bool initialized = false;
103static bool new_mmc_circuit; 103static bool new_mmc_circuit;
104 104