1
0
Fork 0
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:
guoshichao 2024-10-17 10:12:12 +08:00 committed by Xiang Xiao
parent f03da09122
commit 2d7b19b359

View file

@ -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