Skip to content

Commit

Permalink
Merge pull request #6793 from danielinux/no_umaal_for_cortexm
Browse files Browse the repository at this point in the history
Enforce WOLFSSL_SP_NO_UMAAL with _CORTEX_M_ASM
  • Loading branch information
SparkiDev authored Sep 21, 2023
2 parents 4b1c29c + 347394c commit 9442ec4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wolfssl/wolfcrypt/sp_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ extern "C" {
#define WOLFSSL_SP_DIV_WORD_HALF
#endif

/* Detect Cortex M3 (no UMAAL) */
#if defined(WOLFSSL_SP_ARM_CORTEX_M_ASM) && defined(__ARM_ARCH_7M__)
#undef WOLFSSL_SP_NO_UMAAL
#define WOLFSSL_SP_NO_UMAAL
#endif


/* Make sure WOLFSSL_SP_ASM build option defined when requested */
#if !defined(WOLFSSL_SP_ASM) && ( \
defined(WOLFSSL_SP_X86_64_ASM) || defined(WOLFSSL_SP_ARM32_ASM) || \
Expand Down

0 comments on commit 9442ec4

Please sign in to comment.