forked from wolfSSL/wolfssl
wc_port.h: fix macros for powerpc
This commit is contained in:
@@ -1106,7 +1106,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* PowerPC time_t is int */
|
/* PowerPC time_t is int */
|
||||||
#ifdef __PPC__
|
#if defined(__PPC__) || defined(__ppc__)
|
||||||
#define TIME_T_NOT_64BIT
|
#define TIME_T_NOT_64BIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1274,7 +1274,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#define XFENCE() XASM_VOLATILE("isb")
|
#define XFENCE() XASM_VOLATILE("isb")
|
||||||
#elif defined(__riscv)
|
#elif defined(__riscv)
|
||||||
#define XFENCE() XASM_VOLATILE("fence")
|
#define XFENCE() XASM_VOLATILE("fence")
|
||||||
#elif defined(__PPC__)
|
#elif defined(__PPC__) || defined(__POWERPC__)
|
||||||
#define XFENCE() XASM_VOLATILE("isync; sync")
|
#define XFENCE() XASM_VOLATILE("isync; sync")
|
||||||
#else
|
#else
|
||||||
#define XFENCE() WC_DO_NOTHING
|
#define XFENCE() WC_DO_NOTHING
|
||||||
|
Reference in New Issue
Block a user