Add INIT_ATTR to storage_init() when possible

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31036 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2011-11-20 18:44:40 +00:00
parent bccee89002
commit 814ffffdbe
7 changed files with 16 additions and 6 deletions

View file

@ -908,6 +908,16 @@ Lyre prototype 1 */
#define INITDATA_ATTR
#endif
/* We need to call storage_init more than once only if USB storage mode is
* handled in hardware:
* Deinit storage -> let hardware handle USB mode -> storage_init() again
*/
#if defined(HAVE_USBSTACK) || defined(USB_NONE)
#define STORAGE_INIT_ATTR INIT_ATTR
#else
#define STORAGE_INIT_ATTR
#endif
#if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__)
#define DATA_ATTR __attribute__ ((section("__DATA, .data")))
#else