This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 2d7b19b359 ghs: add thumb mode detection support for ghs compiler
2d7b19b359 is described below
commit 2d7b19b359a687cc5de8aa7f00c04767560efb69
Author: guoshichao <[email protected]>
AuthorDate: Thu Oct 17 10:12:12 2024 +0800
ghs: add thumb mode detection support for ghs compiler
Signed-off-by: guoshichao <[email protected]>
---
arch/arm/include/syscall.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/syscall.h b/arch/arm/include/syscall.h
index 39cb3fba15..60d7b1b6f7 100644
--- a/arch/arm/include/syscall.h
+++ b/arch/arm/include/syscall.h
@@ -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