From patchwork Thu Oct 8 02:53:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Kaneda X-Patchwork-Id: 11822077 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AF4FF17CF for ; Thu, 8 Oct 2020 03:22:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 919B721924 for ; Thu, 8 Oct 2020 03:22:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728062AbgJHDWA (ORCPT ); Wed, 7 Oct 2020 23:22:00 -0400 Received: from mga04.intel.com ([192.55.52.120]:29850 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727449AbgJHDV6 (ORCPT ); Wed, 7 Oct 2020 23:21:58 -0400 IronPort-SDR: BK6nRqR1a9eNKNdCxDY0GtJISHyJJJmJi9rVx0Be6I0iV/2n/LQLspi8fl8pNp85ld41weCt6O o4iuVBE0zuuw== X-IronPort-AV: E=McAfee;i="6000,8403,9767"; a="162613632" X-IronPort-AV: E=Sophos;i="5.77,349,1596524400"; d="scan'208";a="162613632" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2020 20:21:58 -0700 IronPort-SDR: mYhaNxdlx+KkZQXu14rV2p9U8jnWBDPR/p6qQwsaHt8mVV0hgn6x0oSE/8A9Diu59lvB3nXEfV H/DESAbFnC6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,349,1596524400"; d="scan'208";a="355229326" Received: from sibelius.jf.intel.com ([10.54.75.172]) by orsmga007.jf.intel.com with ESMTP; 07 Oct 2020 20:21:58 -0700 From: Erik Kaneda To: "Rafael J . Wysocki" , ACPI Devel Maling List Cc: Colin Ian King , Bob Moore , Erik Kaneda Subject: [PATCH 1/9] ACPICA: Add support for 64 bit risc-v compilation. Date: Wed, 7 Oct 2020 19:53:55 -0700 Message-Id: <20201008025403.2401736-2-erik.kaneda@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201008025403.2401736-1-erik.kaneda@intel.com> References: <20201008025403.2401736-1-erik.kaneda@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Colin Ian King ACPICA commit 0def627be286620c64a5d4d60ce2373f119169a9 Add 64 bit risc-v architecture. Useful for acpica tools and incorporating ACPICA into the Firmware Test Suite. Link: https://github.com/acpica/acpica/commit/0def627b Signed-off-by: Colin Ian King Signed-off-by: Bob Moore Signed-off-by: Erik Kaneda --- include/acpi/platform/aclinux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 4151c76141fa..72f52a1342a0 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -194,7 +194,8 @@ #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\ defined(__aarch64__) || defined(__PPC64__) ||\ - defined(__s390x__) + defined(__s390x__) ||\ + (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) #define ACPI_MACHINE_WIDTH 64 #define COMPILER_DEPENDENT_INT64 long #define COMPILER_DEPENDENT_UINT64 unsigned long