forked from nuttx/nuttx-update
ghs: add thumb mode detection support for ghs compiler
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
f03da09122
commit
2d7b19b359
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@
|
|||
|
||||
#define SYS_syscall 0x00
|
||||
|
||||
#if defined(__thumb__) || defined(__thumb2__)
|
||||
#if defined(__thumb__) || defined(__thumb2__) || \
|
||||
defined(__THUMB_AWARE__) || defined(__THUMB2_AWARE__)
|
||||
# define SYS_smhcall 0xab
|
||||
#else
|
||||
# define SYS_smhcall 0x123456
|
||||
|
|
Loading…
Reference in a new issue