summaryrefslogtreecommitdiffstats
path: root/src/arch/s390x.c
blob: 156c7b9921df17aa2e42c2a6c1810e80527c9307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 #include <sys/auxv.h>
 
#include "arch/s390x.h"
#include "arch/probe.h"

/* flags we export */
int ceph_arch_s390x_crc32 = 0;

/* Supported starting from the IBM z13 */
int ceph_arch_s390x_probe(void)
{
  ceph_arch_s390x_crc32 = 0;

  if (getauxval(AT_HWCAP) & HWCAP_S390_VX) {
    ceph_arch_s390x_crc32 = 1;
  }

  return 0;
}