From nobody Tue Feb 10 20:50:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+94420+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+94420+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1664277280; cv=none; d=zohomail.com; s=zohoarc; b=S+jfBgZtfRi7b4WvK4WbbnU4CSJZn04a+ZwD8RksGF8NCkfcRJ0t/RcO11TjSDmfDXh7Eo5L9eAKzzNs9GiSEgwmJMzFEEa4wDqiXWHQ2Ee8Qpng4AzP4NxhesOGUg1t9TnBLeuWwfRx+o2QNPdLguHjlT6SUWuTXC9e//dnTbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1664277280; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=gti5Ll/yx9yjb7P0w09btjhVnmEpST17lItopzGpcRs=; b=QB4Bf6wL7c71ZHxS4CPUqi0rIMJ3UAUhgHATmvVAl2SqxYLz/heE9L/5t1YchqMC5XSRxgXDM3jKlogqrLmE1N/OfDECUuHP4hsRoYjo6HIoCVhWEEGp+2BUzqEo5L9Cba7PRg+dlQ3/3o7L97dEavdDHhooWW6IZO/YOttBTes= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+94420+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1664277280711458.38926218069184; Tue, 27 Sep 2022 04:14:40 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id KAevYY1788612xy3RVvnKFUp; Tue, 27 Sep 2022 04:14:40 -0700 X-Received: from loongson.cn (loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web09.9615.1664277279252189168 for ; Tue, 27 Sep 2022 04:14:39 -0700 X-Received: from code-server.gen (unknown [10.2.9.245]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cxrmv02jJjirsiAA--.49762S28; Tue, 27 Sep 2022 19:14:38 +0800 (CST) From: "Chao Li" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v3 26/34] MdePkg/BaseIoLibIntrinsic: IoLibNoIo for LoongArch architecture. Date: Tue, 27 Sep 2022 19:13:46 +0800 Message-Id: <20220927111354.4107719-27-lichao@loongson.cn> In-Reply-To: <20220927111354.4107719-1-lichao@loongson.cn> References: <20220927111354.4107719-1-lichao@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Cxrmv02jJjirsiAA--.49762S28 X-Coremail-Antispam: 1UD129KBjvJXoWxCw4kGw1UJFWDZFW5uFWrGrg_yoW5Cw48pF s5Grs8J3W7Xr4SkrZ8Wa18XrsYganrXr17G3ZYywn3uFZrXwnY93WYqrWUJr1Yyr1kZr4F gF1Y9a47ua1kZr7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnUUvcSsGvfC2KfnxnUUI43ZEXa7xR_UUUUUUUUU== X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQACCGMxll4dbgAmsE Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lichao@loongson.cn X-Gm-Message-State: ZO6d7fkmgTW79b6VdTJLfA3Sx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1664277280; bh=3g41/HUCKcBpsRHkxvNtr4BP+wv4RTJ24gtFPAvl60U=; h=Cc:Date:From:Reply-To:Subject:To; b=oKrnqg0NwHdOzeP//IWgWMO2r2F2w7/oZIlceWYnbWpaMmuoVS9kLLk5BaJOZdSaJ7q LVd0SOjQYDlvSM1gtIOD8FvY+vA6kfI87g9MfPJRFALi1RjnNA2gBaftlXxoJQ0vmzgCL BRi1HCKyhQYmmUb9gC3N9bxgJA0Z8jwg8DI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1664277281225100072 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4053 LoongArch MMIO library instance, use the IoLibNoIo. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Chao Li Reviewed-by: Michael D Kinney --- .../Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf | 10 +++++++--- MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf b/Mde= Pkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf index 27b15d9ae2..aeb072ee95 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf +++ b/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf @@ -4,13 +4,14 @@ # I/O Library that uses compiler intrinsics to perform IN and OUT instruc= tions # for IA-32 and x64. On IPF, I/O port requests are translated into MMIO = requests. # MMIO requests are forwarded directly to memory. For EBC, I/O port requ= ests -# ASSERT(). For ARM, AARCH64 and RISCV64, this I/O library only provides = non I/O -# read and write. +# ASSERT(). For ARM, AARCH64, RISCV64 and LoongArch, this I/O library onl= y provides +# non I/O read and write. # # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
# Copyright (c) 2017, AMD Incorporated. All rights reserved.
# Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP.= All rights reserved.
+# Portions Copyright (c) 2022, Loongson Technology Corporation Limited. A= ll rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -27,7 +28,7 @@ =20 =20 # -# VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 RISCV64 +# VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 RISCV64 LOON= GARCH64 # =20 [Sources] @@ -62,6 +63,9 @@ [Sources.RISCV64] IoLibNoIo.c =20 +[Sources.LOONGARCH64] + IoLibNoIo.c + [Packages] MdePkg/MdePkg.dec =20 diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c b/MdePkg/Library= /BaseIoLibIntrinsic/IoLibNoIo.c index c71f45b22e..c51e5da39b 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c +++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c @@ -1,11 +1,12 @@ /** @file I/O library for non I/O read and write access (memory map I/O read and - write only) architecture, such as ARM and RISC-V processor. + write only) architecture, such as ARM, RISC-V and LoongArch processor. =20 Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
Copyright (c) 2017, AMD Incorporated. All rights reserved.
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All right= s reserved.
+ Copyright (c) 2022, Loongson Technology Corporation Limited. All rights = reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 --=20 2.27.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94420): https://edk2.groups.io/g/devel/message/94420 Mute This Topic: https://groups.io/mt/93947383/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-