ACPICA: Linux: add support for X32 ABI compilation
authorAnuj Mittal <anuj.mittal@intel.com>
Wed, 24 Jan 2018 23:42:29 +0000 (15:42 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 4 Feb 2018 07:58:30 +0000 (08:58 +0100)
X32 follows ILP32 model. Check for ILP32 as well when checking for
x86_64 to ensure the defines are correct for X32 ABI.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/platform/aclinux.h

index 1b473ef..97e0882 100644 (file)
 #define ACPI_FLUSH_CPU_CACHE()
 #define ACPI_CAST_PTHREAD_T(pthread) ((acpi_thread_id) (pthread))
 
-#if defined(__ia64__)    || defined(__x86_64__) ||\
+#if defined(__ia64__)    || (defined(__x86_64__) && !defined(__ILP32__)) ||\
        defined(__aarch64__) || defined(__PPC64__) ||\
        defined(__s390x__)
 #define ACPI_MACHINE_WIDTH          64