aboutsummaryrefslogtreecommitdiff
path: root/3rdparty
diff options
context:
space:
mode:
authorDave Rodgman <dave.rodgman@arm.com>2023-08-29 13:21:43 +0100
committerDave Rodgman <dave.rodgman@arm.com>2023-08-29 13:21:43 +0100
commit024a3b3f0402ae99db6b3f56cc12d4b121418188 (patch)
treeea449ac872a31af5803df9ae33af0fdc2ba56ce3 /3rdparty
parentd39559059721d96b2ac830d115adf0ff9b2c53a4 (diff)
downloadmbedtls-024a3b3f0402ae99db6b3f56cc12d4b121418188.zip
mbedtls-024a3b3f0402ae99db6b3f56cc12d4b121418188.tar.gz
mbedtls-024a3b3f0402ae99db6b3f56cc12d4b121418188.tar.bz2
Disable p256-m asm on aarch64
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/p256-m/p256-m/p256-m.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/3rdparty/p256-m/p256-m/p256-m.c b/3rdparty/p256-m/p256-m/p256-m.c
index 53d306f..21a021b 100644
--- a/3rdparty/p256-m/p256-m/p256-m.c
+++ b/3rdparty/p256-m/p256-m/p256-m.c
@@ -199,10 +199,12 @@ static uint64_t u32_muladd64(uint32_t x, uint32_t y, uint32_t z, uint32_t t);
* Currently assembly optimisations are only supported with GCC/Clang for
* Arm's Cortex-A and Cortex-M lines of CPUs, which start with the v6-M and
* v7-M architectures. __ARM_ARCH_PROFILE is not defined for v6 and earlier.
+ * Thumb and 32-bit assembly is supported; aarch64 is not supported.
*/
#if defined(__GNUC__) &&\
defined(__ARM_ARCH) && __ARM_ARCH >= 6 && defined(__ARM_ARCH_PROFILE) && \
- ( __ARM_ARCH_PROFILE == 77 || __ARM_ARCH_PROFILE == 65 ) /* 'M' or 'A' */
+ ( __ARM_ARCH_PROFILE == 77 || __ARM_ARCH_PROFILE == 65 ) /* 'M' or 'A' */ && \
+ !defined(__aarch64__)
/*
* This set of CPUs is conveniently partitioned as follows: