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/usb.c | |
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 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 13f66159ac..ebbf0807eb 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -82,7 +82,7 @@ static const char usb_thread_name[] = "usb"; | |||
82 | static unsigned int usb_thread_entry = 0; | 82 | static unsigned int usb_thread_entry = 0; |
83 | static bool usb_monitor_enabled = false; | 83 | static bool usb_monitor_enabled = false; |
84 | #endif /* USB_FULL_INIT */ | 84 | #endif /* USB_FULL_INIT */ |
85 | static struct event_queue usb_queue; | 85 | static struct event_queue usb_queue SHAREDBSS_ATTR; |
86 | static bool exclusive_storage_access = false; | 86 | static bool exclusive_storage_access = false; |
87 | #ifdef USB_ENABLE_HID | 87 | #ifdef USB_ENABLE_HID |
88 | static bool usb_hid = true; | 88 | static bool usb_hid = true; |