forked from wolfSSL/wolfssl
Sync OCTEON fix
The preprocessor selection for the WOLFSSL_GLOBAL macro for OCTEON wasn't getting selected.
This commit is contained in:
@ -721,7 +721,7 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
will use dynamic buffer if not big enough */
|
will use dynamic buffer if not big enough */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CAVIUM_OCTEON
|
#ifdef HAVE_CAVIUM_OCTEON_SYNC
|
||||||
/* By default, the OCTEON's global variables are all thread local. This
|
/* By default, the OCTEON's global variables are all thread local. This
|
||||||
* tag allows them to be shared between threads. */
|
* tag allows them to be shared between threads. */
|
||||||
#include "cvmx-platform.h"
|
#include "cvmx-platform.h"
|
||||||
@ -730,17 +730,6 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#define WOLFSSL_GLOBAL
|
#define WOLFSSL_GLOBAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_NITROX_OCTEON
|
|
||||||
/* By default, the OCTEON's global variables are all thread local. This
|
|
||||||
* tag allows them to be shared between threads. */
|
|
||||||
#include "cvmx-platform.h"
|
|
||||||
#define WOLFSSL_GLOBAL CVMX_SHARED
|
|
||||||
#else
|
|
||||||
#define WOLFSSL_GLOBAL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user