From 11c4fc6d991d3c54a93564fa2021af741fc95244 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sat, 1 Sep 2018 23:35:44 +0200 Subject: [PATCH] linux: add arch definition for unaligned access support * linux/arch_defs_.h [HAVE_ARCH_UNALIGNED_ACCESS] (HAVE_ARCH_UNALIGNED_ACCESS): New macro constant, defined to 1. * linux/alpha/arch_defs_.h (HAVE_ARCH_UNALIGNED_ACCESS): New macro constant, defined to 0. * linux/arm/arch_defs_.h: Likewise. * linux/powerpc/arch_defs_.h: Likewise. * linux/powerpc64/arch_defs_.h: Likewise. * linux/sparc/arch_defs_.h: Likewise. --- linux/alpha/arch_defs_.h | 1 + linux/arch_defs_.h | 4 ++++ linux/arm/arch_defs_.h | 1 + linux/powerpc/arch_defs_.h | 1 + linux/powerpc64/arch_defs_.h | 1 + linux/sparc/arch_defs_.h | 1 + 6 files changed, 9 insertions(+) diff --git a/linux/alpha/arch_defs_.h b/linux/alpha/arch_defs_.h index f6fe59e5..3377db67 100644 --- a/linux/alpha/arch_defs_.h +++ b/linux/alpha/arch_defs_.h @@ -1,2 +1,3 @@ #define HAVE_ARCH_GETRVAL2 1 #define HAVE_ARCH_DEDICATED_ERR_REG 1 +#define HAVE_ARCH_UNALIGNED_ACCESS 0 diff --git a/linux/arch_defs_.h b/linux/arch_defs_.h index 87e20063..47c20477 100644 --- a/linux/arch_defs_.h +++ b/linux/arch_defs_.h @@ -35,3 +35,7 @@ #ifndef CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL # define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 0 #endif + +#ifndef HAVE_ARCH_UNALIGNED_ACCESS +# define HAVE_ARCH_UNALIGNED_ACCESS 1 +#endif diff --git a/linux/arm/arch_defs_.h b/linux/arm/arch_defs_.h index 1a7e176f..fc500075 100644 --- a/linux/arm/arch_defs_.h +++ b/linux/arm/arch_defs_.h @@ -2,3 +2,4 @@ #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 +#define HAVE_ARCH_UNALIGNED_ACCESS 0 diff --git a/linux/powerpc/arch_defs_.h b/linux/powerpc/arch_defs_.h index 06b6da95..a1955f6f 100644 --- a/linux/powerpc/arch_defs_.h +++ b/linux/powerpc/arch_defs_.h @@ -1,3 +1,4 @@ #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_DEDICATED_ERR_REG 1 #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 +#define HAVE_ARCH_UNALIGNED_ACCESS 0 diff --git a/linux/powerpc64/arch_defs_.h b/linux/powerpc64/arch_defs_.h index 037b52f6..8249bf18 100644 --- a/linux/powerpc64/arch_defs_.h +++ b/linux/powerpc64/arch_defs_.h @@ -1,3 +1,4 @@ #define HAVE_ARCH_OLD_SELECT 1 #define SUPPORTED_PERSONALITIES 2 #define HAVE_ARCH_DEDICATED_ERR_REG 1 +#define HAVE_ARCH_UNALIGNED_ACCESS 0 diff --git a/linux/sparc/arch_defs_.h b/linux/sparc/arch_defs_.h index 94f6e2bd..5b54c1a9 100644 --- a/linux/sparc/arch_defs_.h +++ b/linux/sparc/arch_defs_.h @@ -3,3 +3,4 @@ #define HAVE_ARCH_SA_RESTORER 1 #define HAVE_ARCH_DEDICATED_ERR_REG 1 #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 +#define HAVE_ARCH_UNALIGNED_ACCESS 0