mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Mark thumb entry points as such when building for thumb, otherwise mark
them as arm.
This commit is contained in:
parent
827422e3fd
commit
8465de8e6c
1 changed files with 7 additions and 1 deletions
|
|
@ -87,7 +87,13 @@
|
|||
*/
|
||||
#define GLOBAL(x) .global x
|
||||
|
||||
#define _LEENTRY(x) .type x,_ASM_TYPE_FUNCTION; x:
|
||||
#ifdef __thumb__
|
||||
#define _FUNC_MODE .code 16; .thumb_func
|
||||
#else
|
||||
#define _FUNC_MODE .code 32
|
||||
#endif
|
||||
|
||||
#define _LEENTRY(x) .type x,_ASM_TYPE_FUNCTION; _FUNC_MODE; x:
|
||||
#define _LEEND(x) /* nothing */
|
||||
#define _EENTRY(x) GLOBAL(x); _LEENTRY(x)
|
||||
#define _EEND(x) _LEEND(x)
|
||||
|
|
|
|||
Loading…
Reference in a new issue