Skip to content

Commit 579e840

Browse files
agattidpgeorge
authored andcommitted
extmod/modplatform: Distinguish AArch64 from AArch32.
This commit adds a new platform architecture name for Arm CPUs running in 64 bits mode ("aarch64"). The 32 bits name is left as "arm" to maintain compatibility with existing code. Signed-off-by: Alessandro Gatti <[email protected]>
1 parent beabef5 commit 579e840

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extmod/modplatform.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
// See: https://sourceforge.net/p/predef/wiki/Home/
3737

3838
#if defined(__ARM_ARCH)
39+
#if defined(__ARM_ARCH_ISA_A64)
40+
#define MICROPY_PLATFORM_ARCH "aarch64"
41+
#else
3942
#define MICROPY_PLATFORM_ARCH "arm"
43+
#endif
4044
#elif defined(__x86_64__) || defined(_M_X64)
4145
#define MICROPY_PLATFORM_ARCH "x86_64"
4246
#elif defined(__i386__) || defined(_M_IX86)

0 commit comments

Comments
 (0)