openssl: Workaround for ARM-specific files

Update #3110.
This commit is contained in:
Sebastian Huber
2017-08-23 10:54:04 +02:00
parent 301ee6e143
commit 885ac75710
2 changed files with 4 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
#ifndef __ARM_ARCH_H__
# define __ARM_ARCH_H__
#if defined(__rtems__) && defined(__arm__)
# if !defined(__ARM_ARCH__)
# if defined(__CC_ARM)
# define __ARM_ARCH__ __TARGET_ARCH_ARM
@@ -75,4 +76,5 @@ extern unsigned int OPENSSL_armcap_P;
# define ARMV8_SHA256 (1<<4)
# define ARMV8_PMULL (1<<5)
#endif /* __rtems__ */
#endif

View File

@@ -9,6 +9,7 @@
#include "arm_arch.h"
#if defined(__rtems__) && defined(__arm__)
unsigned int OPENSSL_armcap_P = 0;
#if __ARM_MAX_ARCH__<7
@@ -164,3 +165,4 @@ void OPENSSL_cpuid_setup(void)
sigprocmask(SIG_SETMASK, &oset, NULL);
}
#endif
#endif /* __rtems__ */