From: Erik Schmauss <erik.schmauss@intel.com>
To: linux-acpi@vger.kernel.org
Cc: Anuj Mittal <anuj.mittal@intel.com>,
Erik Schmauss <erik.schmauss@intel.com>
Subject: [PATCH 1/6] ACPICA: Linux: add support for X32 ABI compilation
Date: Wed, 24 Jan 2018 15:42:29 -0800 [thread overview]
Message-ID: <20180124234234.19828-2-erik.schmauss@intel.com> (raw)
In-Reply-To: <20180124234234.19828-1-erik.schmauss@intel.com>
From: Anuj Mittal <anuj.mittal@intel.com>
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>
---
include/acpi/platform/aclinux.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 1b473efd9eb6..97e088276c6d 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -206,7 +206,7 @@
#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
--
2.14.3
next prev parent reply other threads:[~2018-01-24 23:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-24 23:42 [PATCH 0/6] ACPICA version 20180105 Erik Schmauss
2018-01-24 23:42 ` Erik Schmauss [this message]
2018-01-24 23:42 ` [PATCH 2/6] ACPICA: Avoid NULL pointer arithmetic Erik Schmauss
2018-01-24 23:42 ` [PATCH 3/6] ACPICA: Prefer ACPI_TO_POINTER() over ACPI_ADD_PTR() Erik Schmauss
2018-01-24 23:42 ` [PATCH 4/6] ACPICA: Add a missing pair of parentheses Erik Schmauss
2018-01-24 23:42 ` [PATCH 6/6] ACPICA: Update version to 20180105 Erik Schmauss
2018-02-04 8:00 ` [PATCH 0/6] ACPICA version 20180105 Rafael J. Wysocki
2018-02-08 9:40 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180124234234.19828-2-erik.schmauss@intel.com \
--to=erik.schmauss@intel.com \
--cc=anuj.mittal@intel.com \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).