From patchwork Wed Apr 5 13:36:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 79652 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp344657vqo; Wed, 5 Apr 2023 07:20:39 -0700 (PDT) X-Google-Smtp-Source: AKy350azPQsj+hYtBWeVRlUgduegD45+omQXWJpkfusCteH2I2+S3B/csWJuIENGBOFQMx0o8Zst X-Received: by 2002:a17:90a:13:b0:233:f786:35ca with SMTP id 19-20020a17090a001300b00233f78635camr6543472pja.35.1680704439515; Wed, 05 Apr 2023 07:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680704439; cv=none; d=google.com; s=arc-20160816; b=GT9nlSbMIvuEx+T0bZuqqQNc4OKlB8FNkSOmVkaRXJsVcWcVlLpzoFIsJxulpCc7o6 eH5XB7UkpSyC8cxEjHBUCXwNr1GIGMDFMwwqrCbMsgXeGh5nwSu0axUAzSi7AlPcL4QC 8/F//hitDHcthK9gtuMu6gkc+614lwOFToyLXovBgiWXRQxiipWSh//9Iw/QEWa2VvI6 fEPVUaLAMRD9heQYvYVfU/kYqCb8oOeTVUtq6gUe/mQSXPORmvEobT1eJ6fv+Wvfjgne 2Sl49rTUs8X/oQnfObqi9LTJwCyT6Z0LUJnGBEs1TzZOpW7QmeMKgbEz2rhfubjRQlan 3uFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=I2ImebhGhlKTvHxvTGv19G/jykq1quAYCVB14fzFVc0=; b=BuewFebkE0KZydrVq3JvP+bY4JR9LWcOxF+YtmDJZNU+CEECEROvST27k6F9U60Nfj cK68PsnXkyVer9corCeIwK+7QMptth0jn09eNt3hVdTFJBgHx5YmCZaNEacCvKWT6RWP O2n45UUXNzhMd47AmPuMvLZLUL61sE/bKi8l08DKg5NUpELHkelbjcHTRB/Q2hSNGb4U xm1Ibc0jNVfNgQI0VqAIkEIUKikv236EhHjlnNBnqJ3IK3fbf8Aw5kYBh47lID8rTavK aPN/AIGBiXacKpMaq8prmSQcqstIMu7ygXYdVgz9fvQB2tQkbUeJBPTEHqemic/pyXdV +tew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a17090ad98500b00240262caf83si1441450pjv.82.2023.04.05.07.20.27; Wed, 05 Apr 2023 07:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238335AbjDEOEf (ORCPT + 99 others); Wed, 5 Apr 2023 10:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238403AbjDEODQ (ORCPT ); Wed, 5 Apr 2023 10:03:16 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3117972B5; Wed, 5 Apr 2023 07:01:39 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.1.0) id 16fa3e09ab760ded; Wed, 5 Apr 2023 16:01:23 +0200 Received: from kreacher.localnet (unknown [213.134.163.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 8710F1B4EA6F; Wed, 5 Apr 2023 16:01:22 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Bob Moore Subject: [PATCH 05/32] ACPICA: Add support for 64 bit loong_arch compilation Date: Wed, 05 Apr 2023 15:36:09 +0200 Message-ID: <10278375.nUPlyArG6x@kreacher> In-Reply-To: <4845957.31r3eYUQgx@kreacher> References: <4845957.31r3eYUQgx@kreacher> MIME-Version: 1.0 X-CLIENT-IP: 213.134.163.219 X-CLIENT-HOSTNAME: 213.134.163.219 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejuddgjeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepledtieekkeekveeikeetgffgteeuteefjeevjeegudelvdduheeiuedvieehieevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepvddufedrudefgedrudeifedrvdduleenucevlhhushhtvghrufhiiigvpeegnecurfgrrhgrmhepihhnvghtpedvudefrddufeegrdduieefrddvudelpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhosggvrhhtrdhmohhorhgvsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=3 Fuz1=3 Fuz2=3 X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762346338308848771?= X-GMAIL-MSGID: =?utf-8?q?1762346338308848771?= From: Huacai Chen ACPICA commit d809b69cf43c632c8fe5b42372a891216fdd9223 Add 64 bit loong_arch architecture by defining ACPI_MACHINE_WIDTH to 64. Useful for acpica tools and incorporating ACPICA into the Firmware Test Suite. Link: https://github.com/acpica/acpica/commit/d809b69c Signed-off-by: Huacai Chen Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- 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 a5550dd4d507..14ac657a7ded 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -199,7 +199,7 @@ #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\ defined(__aarch64__) || defined(__PPC64__) ||\ - defined(__s390x__) ||\ + defined(__s390x__) || defined(__loongarch__) ||\ (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) #define ACPI_MACHINE_WIDTH 64 #define COMPILER_DEPENDENT_INT64 long