mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 19:53:18 -04:00
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:
parent
bccee89002
commit
814ffffdbe
7 changed files with 16 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue