mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 23:52:26 -05:00
Introduce USED_ATTR wrapper for __attribute__((used)).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31188 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9653ae364c
commit
59e71ee80c
11 changed files with 35 additions and 10 deletions
|
|
@ -21,12 +21,14 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include "gcc_extensions.h"
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
* Start the thread running and terminate it if it returns
|
||||
*---------------------------------------------------------------------------
|
||||
*/
|
||||
void start_thread(void); /* Provide C access to ASM label */
|
||||
static void __attribute__((used)) __start_thread(void)
|
||||
static void USED_ATTR __start_thread(void)
|
||||
{
|
||||
/* a0=macsr, a1=context */
|
||||
asm volatile (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue