mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-29 02:19:17 +08:00
replace target arch macros in padlock
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
d6e312dde4
commit
782b966666
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined(MBEDTLS_HAVE_X86)
|
#if defined(MBEDTLS_VIA_PADLOCK_HAVE_CODE)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PadLock detection routine
|
* PadLock detection routine
|
||||||
@ -162,6 +162,6 @@ int mbedtls_padlock_xcryptcbc(mbedtls_aes_context *ctx,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* MBEDTLS_HAVE_X86 */
|
#endif /* MBEDTLS_VIA_PADLOCK_HAVE_CODE */
|
||||||
|
|
||||||
#endif /* MBEDTLS_PADLOCK_C */
|
#endif /* MBEDTLS_PADLOCK_C */
|
||||||
|
@ -39,15 +39,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Some versions of ASan result in errors about not enough registers */
|
/* Some versions of ASan result in errors about not enough registers */
|
||||||
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && defined(__i386__) && \
|
#if defined(__GNUC__) && defined(MBEDTLS_ARCH_IS_X86) && \
|
||||||
!defined(MBEDTLS_HAVE_ASAN)
|
defined(MBEDTLS_HAVE_ASM) && !defined(MBEDTLS_HAVE_ASAN)
|
||||||
|
|
||||||
#define MBEDTLS_VIA_PADLOCK_HAVE_CODE
|
#define MBEDTLS_VIA_PADLOCK_HAVE_CODE
|
||||||
|
|
||||||
#ifndef MBEDTLS_HAVE_X86
|
|
||||||
#define MBEDTLS_HAVE_X86
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define MBEDTLS_PADLOCK_RNG 0x000C
|
#define MBEDTLS_PADLOCK_RNG 0x000C
|
||||||
|
Loading…
x
Reference in New Issue
Block a user