public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II
@ 2022-09-14  9:35 Chao Li
  2022-09-14  9:35 ` [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml Chao Li
                   ` (9 more replies)
  0 siblings, 10 replies; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:35 UTC (permalink / raw)
  To: devel
  Cc: Ray Ni, Liming Gao, Michael D Kinney, Guomin Jiang, Wei6 Xu,
	Maciej Rabeda, Jiaxin Wu, Siyuan Fu, Jiewen Yao, Jian J Wang,
	Xiaoyu Lu, Zhiguang Liu, Zhichao Gao, Bob Feng, Yuwei Chen

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

UEFI Spec V2.10 already supports LoongArch and all changes of this
commit passwed Azure CI testing, so let's enable it in EDK2. This commit
contains 35 patchs, with patch 0 is the cover and the rest being the
LoongArch base code.

Changes from v1 to v2:
1. For patch 0008, added IANA website link in the commit message and
Dhcp.h.
2. Added IANA, Microsft and UEFI specification links in every patch
commit message that uses them.
3. For patch 0023, LoongArch64 supports unaligned access operations, so
use the unaligned read/write generic implementation. Added Barrier.S
file to provide barrier operations for LoongArch.
4. For patch 0024, convert inline assembly code to ASM code.
5. Added the BZ link in every patch commit message.

Please refer to this URL for the code repo of LoongArch64:
https://github.com/loongson/edk2/tree/LoongArch

Fore more documents of LoongArch please refer to following URL:
https://loongson.github.io/LoongArch-Documentation/README-EN.html

Modified modules: FatPkg, FmpDevicePkg, NetworkPkg,
NetworkPkg/HttpBootDxe, CryptoPkg, MdePkg/Include, SecurityPkg,
ShellPkg, UnitTestFrameworkPkg, MdePkg/DxeServicesLib, MdeModulePkg,
.python/SpellCheck, BaseTools, .azurepipelines, .pytool, MdePkg,
MdeModulePkg and MdePkg/MdePkg.ci.yaml.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Yuwei Chen <yuwei.chen@intel.com>

Chao Li (34):
  MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml
  MdePkg: Added LoongArch jump buffer register definition to
    MdePkg.ci.yaml
  FatPkg: Add LOONGARCH64 architecture for EDK2 CI.
  FmpDevicePkg: Add LOONGARCH64 architecture for EDK2 CI.
  NetworkPkg: Add LOONGARCH64 architecture for EDK2 CI.
  NetworkPkg/HttpBootDxe: Add LOONGARCH64 architecture for EDK2 CI.
  CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI.
  MdePkg/Include: Add LOONGARCH related definitions EDK2 CI.
  SecurityPkg: Add LOONGARCH64 architecture for EDK2 CI.
  ShellPkg: Add LOONGARCH64 architecture for EDK2 CI.
  UnitTestFrameworkPkg: Add LOONGARCH64 architecture for EDK2 CI.
  MdePkg/DxeServicesLib: Add LOONGARCH64 architecture
  MdeModulePkg: Use LockBoxNullLib for LOONGARCH64
  .python/SpellCheck: Add "Loongson" and "LOONGARCH" to "words" section
  BaseTools: BaseTools changes for LoongArch platform.
  BaseTools: BaseTools changes for LoongArch platform.
  BaseTools: BaseTools changes for LoongArch platform.
  BaseTools: Enable LoongArch64 architecture for LoongArch64 EDK2 CI.
  .azurepipelines: Add LoongArch64 architecture on LoongArch64 EDK2 CI.
  .pytool: Add LoongArch64 architecture on LoongArch64 EDK2 CI.
  MdePkg: Add LoongArch LOONGARCH64 binding
  MdePkg/Include: LoongArch definitions.
  MdePkg/BaseLib: BaseLib for LOONGARCH64 architecture.
  MdePkg/BaseCacheMaintenanceLib: LoongArch cache maintenance
    implementation.
  MdePkg/BaseIoLibIntrinsic: IoLibNoIo for LoongArch architecture.
  MdePkg/BasePeCoff: Add LoongArch PE/Coff related code.
  MdePkg/BaseCpuLib: LoongArch Base CPU library implementation.
  MdePkg/BaseSynchronizationLib: LoongArch cache related code.
  MdePkg/BaseSafeIntLib: Add LoongArch64 architecture for
    BaseSafeIntLib.
  MdeModulePkg/Logo: Add LoongArch64 architecture.
  MdeModulePkg/CapsuleRuntimeDxe: Add LoongArch64 architecture.
  MdeModulePkg/DxeIplPeim : LoongArch DxeIPL implementation.
  NetworkPkg: Add LoongArch64 architecture.
  BaseTools: Add LoongArch64 binding.

 .azurepipelines/Ubuntu-GCC5.yml               |   3 +-
 .pytool/CISettings.py                         |   5 +-
 .pytool/Plugin/SpellCheck/cspell.base.yaml    |   4 +-
 ...gcc_loongarch64_unknown_linux_ext_dep.yaml |  22 ++
 BaseTools/Conf/tools_def.template             |  54 +++-
 .../LinuxGcc5ToolChain/LinuxGcc5ToolChain.py  |  31 ++
 BaseTools/Source/C/Common/BasePeCoff.c        |  15 +-
 BaseTools/Source/C/Common/PeCoffLoaderEx.c    |  79 +++++
 BaseTools/Source/C/GNUmakefile                |   3 +
 BaseTools/Source/C/GenFv/GenFvInternalLib.c   | 125 +++++++-
 BaseTools/Source/C/GenFw/Elf64Convert.c       | 293 +++++++++++++++++-
 BaseTools/Source/C/GenFw/elf_common.h         |  94 ++++++
 .../C/Include/IndustryStandard/PeImage.h      |  57 ++--
 .../C/Include/LoongArch64/ProcessorBind.h     |  80 +++++
 BaseTools/Source/C/Makefiles/header.makefile  |   6 +
 BaseTools/Source/Python/Common/DataType.py    |  21 +-
 .../Source/Python/UPT/Library/DataType.py     |  24 +-
 BaseTools/Source/Python/build/buildoptions.py |   3 +-
 CryptoPkg/CryptoPkg.dsc                       |   3 +-
 .../Library/BaseCryptLib/BaseCryptLib.inf     |   6 +-
 .../Library/BaseCryptLib/RuntimeCryptLib.inf  |   4 +
 .../BaseCryptLibNull/BaseCryptLibNull.inf     |   3 +-
 .../BaseCryptLibOnProtocolPpi/DxeCryptLib.inf |   3 +-
 .../BaseCryptLibOnProtocolPpi/PeiCryptLib.inf |   3 +-
 CryptoPkg/Library/Include/CrtLibSupport.h     |   3 +-
 CryptoPkg/Library/OpensslLib/OpensslLib.inf   |   2 +
 .../Library/OpensslLib/OpensslLibCrypto.inf   |   2 +
 CryptoPkg/Library/TlsLib/TlsLib.inf           |   3 +-
 CryptoPkg/Library/TlsLibNull/TlsLibNull.inf   |   3 +-
 FatPkg/FatPkg.dsc                             |   3 +-
 FmpDevicePkg/FmpDevicePkg.dsc                 |   3 +-
 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf       |   6 +-
 .../Core/DxeIplPeim/LoongArch64/DxeLoadFunc.c |  63 ++++
 MdeModulePkg/Logo/Logo.inf                    |   3 +-
 MdeModulePkg/MdeModulePkg.dsc                 |   4 +-
 .../CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf   |   9 +-
 MdePkg/Include/IndustryStandard/Dhcp.h        |  45 +--
 MdePkg/Include/IndustryStandard/PeImage.h     |   9 +
 MdePkg/Include/Library/BaseLib.h              |  24 ++
 MdePkg/Include/LoongArch64/ProcessorBind.h    | 120 +++++++
 MdePkg/Include/Protocol/DebugSupport.h        | 107 ++++++-
 MdePkg/Include/Protocol/PxeBaseCode.h         |   3 +
 MdePkg/Include/Uefi/UefiBaseType.h            |  14 +
 MdePkg/Include/Uefi/UefiSpec.h                |  16 +-
 .../BaseCacheMaintenanceLib.inf               |   6 +-
 .../BaseCacheMaintenanceLib/LoongArchCache.c  | 254 +++++++++++++++
 MdePkg/Library/BaseCpuLib/BaseCpuLib.inf      |   7 +-
 MdePkg/Library/BaseCpuLib/BaseCpuLib.uni      |   5 +-
 .../BaseCpuLib/LoongArch/CpuFlushTlb.S        |  15 +
 .../Library/BaseCpuLib/LoongArch/CpuSleep.S   |  15 +
 .../BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf |  10 +-
 MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c |   3 +-
 MdePkg/Library/BaseLib/BaseLib.inf            |  16 +-
 MdePkg/Library/BaseLib/LoongArch64/Barrier.S  |  28 ++
 .../BaseLib/LoongArch64/CpuBreakpoint.S       |  24 ++
 MdePkg/Library/BaseLib/LoongArch64/CpuPause.S |  31 ++
 .../BaseLib/LoongArch64/DisableInterrupts.S   |  21 ++
 .../BaseLib/LoongArch64/EnableInterrupts.S    |  21 ++
 .../BaseLib/LoongArch64/GetInterruptState.S   |  35 +++
 .../BaseLib/LoongArch64/InternalSwitchStack.c |  58 ++++
 .../Library/BaseLib/LoongArch64/MemoryFence.S |  18 ++
 .../BaseLib/LoongArch64/SetJumpLongJump.S     |  49 +++
 .../Library/BaseLib/LoongArch64/SwitchStack.S |  39 +++
 MdePkg/Library/BasePeCoffLib/BasePeCoff.c     |   3 +-
 .../Library/BasePeCoffLib/BasePeCoffLib.inf   |   5 +
 .../Library/BasePeCoffLib/BasePeCoffLib.uni   |   2 +
 .../BasePeCoffLib/LoongArch/PeCoffLoaderEx.c  | 137 ++++++++
 .../Library/BaseSafeIntLib/BaseSafeIntLib.inf |   9 +-
 .../BaseSynchronizationLib.inf                |   5 +
 .../LoongArch64/Synchronization.c             | 246 +++++++++++++++
 .../Library/DxeServicesLib/DxeServicesLib.inf |   4 +-
 MdePkg/MdePkg.ci.yaml                         |  13 +
 MdePkg/MdePkg.dec                             |   4 +
 MdePkg/MdePkg.dsc                             |   3 +-
 NetworkPkg/HttpBootDxe/HttpBootDhcp4.h        |   3 +
 NetworkPkg/Network.dsc.inc                    |   3 +-
 NetworkPkg/NetworkPkg.dsc                     |   3 +-
 SecurityPkg/SecurityPkg.dsc                   |   3 +-
 ShellPkg/ShellPkg.dsc                         |   3 +-
 UnitTestFrameworkPkg/UnitTestFrameworkPkg.dsc |   3 +-
 80 files changed, 2368 insertions(+), 119 deletions(-)
 create mode 100644 BaseTools/Bin/gcc_loongarch64_unknown_linux_ext_dep.yaml
 create mode 100644 BaseTools/Source/C/Include/LoongArch64/ProcessorBind.h
 create mode 100644 MdeModulePkg/Core/DxeIplPeim/LoongArch64/DxeLoadFunc.c
 create mode 100644 MdePkg/Include/LoongArch64/ProcessorBind.h
 create mode 100644 MdePkg/Library/BaseCacheMaintenanceLib/LoongArchCache.c
 create mode 100644 MdePkg/Library/BaseCpuLib/LoongArch/CpuFlushTlb.S
 create mode 100644 MdePkg/Library/BaseCpuLib/LoongArch/CpuSleep.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/Barrier.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/CpuBreakpoint.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/CpuPause.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/DisableInterrupts.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/EnableInterrupts.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/GetInterruptState.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/InternalSwitchStack.c
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/MemoryFence.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/SetJumpLongJump.S
 create mode 100644 MdePkg/Library/BaseLib/LoongArch64/SwitchStack.S
 create mode 100644 MdePkg/Library/BasePeCoffLib/LoongArch/PeCoffLoaderEx.c
 create mode 100644 MdePkg/Library/BaseSynchronizationLib/LoongArch64/Synchronization.c

-- 
2.27.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

* [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
@ 2022-09-14  9:35 ` Chao Li
  2022-09-23  6:56   ` Chao Li
  2022-09-23 15:37   ` Michael D Kinney
  2022-09-14  9:35 ` [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition " Chao Li
                   ` (8 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:35 UTC (permalink / raw)
  To: devel; +Cc: Michael D Kinney, Liming Gao, Zhiguang Liu

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

DebugSupport.h is all defined by UEFI Spec, most of the code
doesn't fit EDKII coding style, add it to IgnoreFiles field to
make CI ECC check pass.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 MdePkg/MdePkg.ci.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MdePkg/MdePkg.ci.yaml b/MdePkg/MdePkg.ci.yaml
index 054233ebc7..9d141aa3cb 100644
--- a/MdePkg/MdePkg.ci.yaml
+++ b/MdePkg/MdePkg.ci.yaml
@@ -52,6 +52,7 @@
             "Include/IndustryStandard/UefiTcgPlatform.h",
             "Include/Library/PcdLib.h",
             "Include/Library/SafeIntLib.h",
+            "Include/Protocol/DebugSupport.h",
             "Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLib.c"
         ]
     },
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition to MdePkg.ci.yaml
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
  2022-09-14  9:35 ` [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml Chao Li
@ 2022-09-14  9:35 ` Chao Li
  2022-09-23  7:00   ` Chao Li
  2022-09-23 15:37   ` Michael D Kinney
  2022-09-14  9:35 ` [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI Chao Li
                   ` (7 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:35 UTC (permalink / raw)
  To: devel; +Cc: Michael D Kinney, Liming Gao, Zhiguang Liu

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

If the new Arch register is defined in BaseLib.h when running
the CI tests, it will give an ECC check error. Add the
LoongArch register defined in the IgnoreFiles field to make
the CI ECC check pass.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 MdePkg/MdePkg.ci.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/MdePkg/MdePkg.ci.yaml b/MdePkg/MdePkg.ci.yaml
index 9d141aa3cb..19bc0138cb 100644
--- a/MdePkg/MdePkg.ci.yaml
+++ b/MdePkg/MdePkg.ci.yaml
@@ -27,6 +27,18 @@
             "8005", "void",
             "8005", "va_list.__ap",
             "8005", "__stack_chk_guard",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S0",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S1",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S2",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S3",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S4",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S5",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S6",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S7",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.S8",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.SP",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.FP",
+            "8005", "BASE_LIBRARY_JUMP_BUFFER.RA",
             "8001", "MSG_IPv6_DP",
             "8001", "MSG_IPv4_DP",
             "8001", "DEFAULT_ToS",
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
  2022-09-14  9:35 ` [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml Chao Li
  2022-09-14  9:35 ` [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition " Chao Li
@ 2022-09-14  9:35 ` Chao Li
  2022-09-23  7:01   ` Chao Li
  2022-09-14  9:36 ` [PATCH v2 04/34] FmpDevicePkg: " Chao Li
                   ` (6 subsequent siblings)
  9 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:35 UTC (permalink / raw)
  To: devel; +Cc: Ray Ni

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH64 architecture for EDK2 CI testing.

Cc: Ray Ni <ray.ni@intel.com>

Signed-off-by: Chao Li  <lichao@loongson.cn>
---
 FatPkg/FatPkg.dsc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/FatPkg/FatPkg.dsc b/FatPkg/FatPkg.dsc
index 6fa439e440..076b577972 100644
--- a/FatPkg/FatPkg.dsc
+++ b/FatPkg/FatPkg.dsc
@@ -5,6 +5,7 @@
 #  for EDK II Prime release.
 #  Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
 #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
@@ -15,7 +16,7 @@
   PLATFORM_GUID                  = 25b55dbc-9d0b-4a32-80da-46e1273d622c
   PLATFORM_VERSION               = 0.3
   DSC_SPECIFICATION              = 0x00010005
-  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64
+  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
   OUTPUT_DIRECTORY               = Build/Fat
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
   SKUID_IDENTIFIER               = DEFAULT
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 04/34] FmpDevicePkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
                   ` (2 preceding siblings ...)
  2022-09-14  9:35 ` [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI Chao Li
@ 2022-09-14  9:36 ` Chao Li
  2022-09-23  7:03   ` Chao Li
  2022-09-14  9:36 ` [PATCH v2 05/34] NetworkPkg: " Chao Li
                   ` (5 subsequent siblings)
  9 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:36 UTC (permalink / raw)
  To: devel; +Cc: Liming Gao, Michael D Kinney, Guomin Jiang, Wei6 Xu

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH64 architecture for EDK2 CI testing.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 FmpDevicePkg/FmpDevicePkg.dsc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/FmpDevicePkg/FmpDevicePkg.dsc b/FmpDevicePkg/FmpDevicePkg.dsc
index 7b1af285dd..f9f26c54bb 100644
--- a/FmpDevicePkg/FmpDevicePkg.dsc
+++ b/FmpDevicePkg/FmpDevicePkg.dsc
@@ -9,6 +9,7 @@
 # Copyright (c) Microsoft Corporation.<BR>
 # Copyright (c) 2018 - 2021, Intel Corporation. All rights reserved.<BR>
 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #
 # SPDX-License-Identifier: BSD-2-Clause-Patent
 #
@@ -20,7 +21,7 @@
   PLATFORM_VERSION               = 0.1
   DSC_SPECIFICATION              = 0x00010005
   OUTPUT_DIRECTORY               = Build/FmpDevicePkg
-  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64|RISCV64
+  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64|RISCV64|LOONGARCH64
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
   SKUID_IDENTIFIER               = DEFAULT
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 05/34] NetworkPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
                   ` (3 preceding siblings ...)
  2022-09-14  9:36 ` [PATCH v2 04/34] FmpDevicePkg: " Chao Li
@ 2022-09-14  9:36 ` Chao Li
  2022-09-23  7:06   ` Chao Li
  2022-09-14  9:36 ` [PATCH v2 06/34] NetworkPkg/HttpBootDxe: " Chao Li
                   ` (4 subsequent siblings)
  9 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:36 UTC (permalink / raw)
  To: devel; +Cc: Maciej Rabeda, Jiaxin Wu, Siyuan Fu

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH64 architecture for EDK2 CI testing.

Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 NetworkPkg/NetworkPkg.dsc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/NetworkPkg/NetworkPkg.dsc b/NetworkPkg/NetworkPkg.dsc
index 762134023d..6c231c97b5 100644
--- a/NetworkPkg/NetworkPkg.dsc
+++ b/NetworkPkg/NetworkPkg.dsc
@@ -4,6 +4,7 @@
 # (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
 # Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #    SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -14,7 +15,7 @@
   PLATFORM_VERSION               = 0.98
   DSC_SPECIFICATION              = 0x00010005
   OUTPUT_DIRECTORY               = Build/NetworkPkg
-  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64
+  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
   SKUID_IDENTIFIER               = DEFAULT
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 06/34] NetworkPkg/HttpBootDxe: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
                   ` (4 preceding siblings ...)
  2022-09-14  9:36 ` [PATCH v2 05/34] NetworkPkg: " Chao Li
@ 2022-09-14  9:36 ` Chao Li
  2022-09-23  7:07   ` Chao Li
  2022-09-23  8:05   ` Wu, Jiaxin
  2022-09-14  9:36 ` [PATCH v2 07/34] CryptoPkg: " Chao Li
                   ` (3 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:36 UTC (permalink / raw)
  To: devel; +Cc: Maciej Rabeda, Jiaxin Wu, Siyuan Fu

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH architecture for EDK2 CI testing.

Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 NetworkPkg/HttpBootDxe/HttpBootDhcp4.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h b/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
index d76f0e84d6..f00fabead2 100644
--- a/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
+++ b/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
@@ -3,6 +3,7 @@
 
 Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
@@ -40,6 +41,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE  HTTP_CLIENT_ARCH_RISCV64
 #elif defined (MDE_CPU_EBC)
 #define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE  HTTP_CLIENT_ARCH_EBC
+#elif defined (MDE_CPU_LOONGARCH64)
+#define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE  HTTP_CLIENT_ARCH_LOONGARCH64
 #endif
 
 /// DHCP offer types among HTTP boot.
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 07/34] CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
                   ` (5 preceding siblings ...)
  2022-09-14  9:36 ` [PATCH v2 06/34] NetworkPkg/HttpBootDxe: " Chao Li
@ 2022-09-14  9:36 ` Chao Li
  2022-09-23  7:09   ` Chao Li
  2022-09-14  9:36 ` [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions " Chao Li
                   ` (2 subsequent siblings)
  9 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:36 UTC (permalink / raw)
  To: devel; +Cc: Jiewen Yao, Jian J Wang, Xiaoyu Lu, Guomin Jiang

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH64 architecture for EDK2 CI testing.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 CryptoPkg/CryptoPkg.dsc                                     | 3 ++-
 CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf             | 6 +++++-
 CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf          | 4 ++++
 CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf     | 3 ++-
 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf | 3 ++-
 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf | 3 ++-
 CryptoPkg/Library/Include/CrtLibSupport.h                   | 3 ++-
 CryptoPkg/Library/OpensslLib/OpensslLib.inf                 | 2 ++
 CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf           | 2 ++
 CryptoPkg/Library/TlsLib/TlsLib.inf                         | 3 ++-
 CryptoPkg/Library/TlsLibNull/TlsLibNull.inf                 | 3 ++-
 11 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc
index 50e7721f25..c3a02aafb0 100644
--- a/CryptoPkg/CryptoPkg.dsc
+++ b/CryptoPkg/CryptoPkg.dsc
@@ -4,6 +4,7 @@
 #
 #  Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
 #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -19,7 +20,7 @@
   PLATFORM_VERSION               = 0.98
   DSC_SPECIFICATION              = 0x00010005
   OUTPUT_DIRECTORY               = Build/CryptoPkg
-  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64|RISCV64
+  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64|RISCV64|LOONGARCH64
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
   SKUID_IDENTIFIER               = DEFAULT
 
diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
index 3d7b917103..f8790d2c72 100644
--- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
@@ -8,6 +8,7 @@
 #
 #  Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>
 #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -24,7 +25,7 @@
 #
 # The following information is for reference only and not required by the build tools.
 #
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
 #
 
 [Sources]
@@ -74,6 +75,9 @@
 [Sources.RISCV64]
   Rand/CryptRand.c
 
+[Sources.LOONGARCH64]
+  Rand/CryptRand.c
+
 [Packages]
   MdePkg/MdePkg.dec
   CryptoPkg/CryptoPkg.dec
diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
index d28fb98b66..7da789d00e 100644
--- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
@@ -13,6 +13,7 @@
 #
 #  Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>
 #  Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -79,6 +80,9 @@
 [Sources.RISCV64]
   Rand/CryptRand.c
 
+[Sources.LOONGARCH64]
+  Rand/CryptRand.c
+
 [Packages]
   MdePkg/MdePkg.dec
   CryptoPkg/CryptoPkg.dec
diff --git a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
index 63d1d82d19..1d8b502813 100644
--- a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
+++ b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
@@ -8,6 +8,7 @@
 #
 #  Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>
 #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -24,7 +25,7 @@
 #
 # The following information is for reference only and not required by the build tools.
 #
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
 #
 
 [Sources]
diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
index baa4433cbe..b4945de336 100644
--- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
@@ -4,6 +4,7 @@
 #
 # Copyright (C) Microsoft Corporation. All rights reserved.
 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 # SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -22,7 +23,7 @@
 #
 # The following information is for reference only and not required by the build tools.
 #
-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
 #
 
 [Packages]
diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
index 038ca71890..e7d153db0b 100644
--- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
@@ -4,6 +4,7 @@
 #
 # Copyright (C) Microsoft Corporation. All rights reserved.
 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 # SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -21,7 +22,7 @@
 #
 # The following information is for reference only and not required by the build tools.
 #
-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
 #
 
 [Packages]
diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h
index e49060124f..5072c343da 100644
--- a/CryptoPkg/Library/Include/CrtLibSupport.h
+++ b/CryptoPkg/Library/Include/CrtLibSupport.h
@@ -4,6 +4,7 @@
 
 Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>
 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
@@ -46,7 +47,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #define CONFIG_HEADER_BN_H
 
 #if !defined (SIXTY_FOUR_BIT) && !defined (THIRTY_TWO_BIT)
-  #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64)
+  #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64) || defined (MDE_CPU_LOONGARCH64)
 //
 // With GCC we would normally use SIXTY_FOUR_BIT_LONG, but MSVC needs
 // SIXTY_FOUR_BIT, because 'long' is 32-bit and only 'long long' is
diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
index c899b811b1..f0ca72eeed 100644
--- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf
+++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
@@ -3,6 +3,7 @@
 #
 #  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
 #  (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -675,6 +676,7 @@
   GCC:*_*_ARM_CC_FLAGS     = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable
   GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
   GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
+  GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
   GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
   GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
   GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-error=implicit-function-declaration -Wno-error=ignored-pragma-optimize
diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
index 0ec3724541..195016fd3d 100644
--- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
+++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
@@ -3,6 +3,7 @@
 #
 #  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
 #  (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -624,6 +625,7 @@
   GCC:*_*_ARM_CC_FLAGS     = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable
   GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
   GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
+  GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
   GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
   GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
   GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-error=implicit-function-declaration -Wno-error=ignored-pragma-optimize
diff --git a/CryptoPkg/Library/TlsLib/TlsLib.inf b/CryptoPkg/Library/TlsLib/TlsLib.inf
index bc61cda745..20b0ea6832 100644
--- a/CryptoPkg/Library/TlsLib/TlsLib.inf
+++ b/CryptoPkg/Library/TlsLib/TlsLib.inf
@@ -3,6 +3,7 @@
 #
 #  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
 #  (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -19,7 +20,7 @@
 #
 # The following information is for reference only and not required by the build tools.
 #
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
 #
 
 [Sources]
diff --git a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
index b2920ddacf..12d7cc764a 100644
--- a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
+++ b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
@@ -3,6 +3,7 @@
 #
 #  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
 #  (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -19,7 +20,7 @@
 #
 # The following information is for reference only and not required by the build tools.
 #
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
 #
 
 [Sources]
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions EDK2 CI.
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
                   ` (6 preceding siblings ...)
  2022-09-14  9:36 ` [PATCH v2 07/34] CryptoPkg: " Chao Li
@ 2022-09-14  9:36 ` Chao Li
  2022-09-23  6:22   ` Chao Li
  2022-09-23 15:37   ` Michael D Kinney
  2022-09-14  9:36 ` [PATCH v2 09/34] SecurityPkg: Add LOONGARCH64 architecture for " Chao Li
  2022-09-14  9:36 ` [PATCH v2 10/34] ShellPkg: " Chao Li
  9 siblings, 2 replies; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:36 UTC (permalink / raw)
  To: devel; +Cc: Michael D Kinney, Liming Gao, Zhiguang Liu

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

HTTP/PXE boot LOONGARCH64 related definitions for EDK2 CI.

For the LOONGARCH values, please seeing following URL section
"Processor Architecture Types":
https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 MdePkg/Include/IndustryStandard/Dhcp.h | 45 ++++++++++++++------------
 1 file changed, 25 insertions(+), 20 deletions(-)

diff --git a/MdePkg/Include/IndustryStandard/Dhcp.h b/MdePkg/Include/IndustryStandard/Dhcp.h
index f209f1b2eb..46ab4f8e75 100644
--- a/MdePkg/Include/IndustryStandard/Dhcp.h
+++ b/MdePkg/Include/IndustryStandard/Dhcp.h
@@ -4,6 +4,7 @@
 
   Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
   Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
   SPDX-License-Identifier: BSD-2-Clause-Patent
 **/
 
@@ -256,27 +257,31 @@ typedef enum {
 
 ///
 /// Processor Architecture Types
-/// These identifiers are defined by IETF:
-/// http://www.ietf.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml
+/// These identifiers are defined by IANA:
+/// https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml
 ///
-#define PXE_CLIENT_ARCH_X86_BIOS  0x0000           /// x86 BIOS for PXE
-#define PXE_CLIENT_ARCH_IPF       0x0002           /// Itanium for PXE
-#define PXE_CLIENT_ARCH_IA32      0x0006           /// x86 uefi for PXE
-#define PXE_CLIENT_ARCH_X64       0x0007           /// x64 uefi for PXE
-#define PXE_CLIENT_ARCH_EBC       0x0009           /// EBC for PXE
-#define PXE_CLIENT_ARCH_ARM       0x000A           /// Arm uefi 32 for PXE
-#define PXE_CLIENT_ARCH_AARCH64   0x000B           /// Arm uefi 64 for PXE
-#define PXE_CLIENT_ARCH_RISCV32   0x0019           /// RISC-V uefi 32 for PXE
-#define PXE_CLIENT_ARCH_RISCV64   0x001B           /// RISC-V uefi 64 for PXE
-#define PXE_CLIENT_ARCH_RISCV128  0x001D           /// RISC-V uefi 128 for PXE
+#define PXE_CLIENT_ARCH_X86_BIOS     0x0000          /// x86 BIOS for PXE
+#define PXE_CLIENT_ARCH_IPF          0x0002          /// Itanium for PXE
+#define PXE_CLIENT_ARCH_IA32         0x0006          /// x86 uefi for PXE
+#define PXE_CLIENT_ARCH_X64          0x0007          /// x64 uefi for PXE
+#define PXE_CLIENT_ARCH_EBC          0x0009          /// EBC for PXE
+#define PXE_CLIENT_ARCH_ARM          0x000A          /// Arm uefi 32 for PXE
+#define PXE_CLIENT_ARCH_AARCH64      0x000B          /// Arm uefi 64 for PXE
+#define PXE_CLIENT_ARCH_RISCV32      0x0019          /// RISC-V uefi 32 for PXE
+#define PXE_CLIENT_ARCH_RISCV64      0x001B          /// RISC-V uefi 64 for PXE
+#define PXE_CLIENT_ARCH_RISCV128     0x001D          /// RISC-V uefi 128 for PXE
+#define PXE_CLIENT_ARCH_LOONGARCH32  0x0025          /// LoongArch uefi 32 for PXE
+#define PXE_CLIENT_ARCH_LOONGARCH64  0x0027          /// LoongArch uefi 64 for PXE
 
-#define HTTP_CLIENT_ARCH_IA32      0x000F          /// x86 uefi boot from http
-#define HTTP_CLIENT_ARCH_X64       0x0010          /// x64 uefi boot from http
-#define HTTP_CLIENT_ARCH_EBC       0x0011          /// EBC boot from http
-#define HTTP_CLIENT_ARCH_ARM       0x0012          /// Arm uefi 32 boot from http
-#define HTTP_CLIENT_ARCH_AARCH64   0x0013          /// Arm uefi 64 boot from http
-#define HTTP_CLIENT_ARCH_RISCV32   0x001A          /// RISC-V uefi 32 boot from http
-#define HTTP_CLIENT_ARCH_RISCV64   0x001C          /// RISC-V uefi 64 boot from http
-#define HTTP_CLIENT_ARCH_RISCV128  0x001E          /// RISC-V uefi 128 boot from http
+#define HTTP_CLIENT_ARCH_IA32         0x000F          /// x86 uefi boot from http
+#define HTTP_CLIENT_ARCH_X64          0x0010          /// x64 uefi boot from http
+#define HTTP_CLIENT_ARCH_EBC          0x0011          /// EBC boot from http
+#define HTTP_CLIENT_ARCH_ARM          0x0012          /// Arm uefi 32 boot from http
+#define HTTP_CLIENT_ARCH_AARCH64      0x0013          /// Arm uefi 64 boot from http
+#define HTTP_CLIENT_ARCH_RISCV32      0x001A          /// RISC-V uefi 32 boot from http
+#define HTTP_CLIENT_ARCH_RISCV64      0x001C          /// RISC-V uefi 64 boot from http
+#define HTTP_CLIENT_ARCH_RISCV128     0x001E          /// RISC-V uefi 128 boot from http
+#define HTTP_CLIENT_ARCH_LOONGARCH32  0x0026          /// LoongArch uefi 32 boot from http
+#define HTTP_CLIENT_ARCH_LOONGARCH64  0x0028          /// LoongArch uefi 64 boot from http
 
 #endif
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 09/34] SecurityPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
                   ` (7 preceding siblings ...)
  2022-09-14  9:36 ` [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions " Chao Li
@ 2022-09-14  9:36 ` Chao Li
  2022-09-23  7:10   ` Chao Li
  2022-09-14  9:36 ` [PATCH v2 10/34] ShellPkg: " Chao Li
  9 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:36 UTC (permalink / raw)
  To: devel; +Cc: Jiewen Yao, Jian J Wang

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH64 architecture to SecurityPkg for EDK2 CI testing.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 SecurityPkg/SecurityPkg.dsc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SecurityPkg/SecurityPkg.dsc b/SecurityPkg/SecurityPkg.dsc
index f48187650f..6bf53c5658 100644
--- a/SecurityPkg/SecurityPkg.dsc
+++ b/SecurityPkg/SecurityPkg.dsc
@@ -3,6 +3,7 @@
 #
 # Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
 # (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 # SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -13,7 +14,7 @@
   PLATFORM_VERSION               = 0.98
   DSC_SPECIFICATION              = 0x00010005
   OUTPUT_DIRECTORY               = Build/SecurityPkg
-  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64
+  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
   SKUID_IDENTIFIER               = DEFAULT
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH v2 10/34] ShellPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
                   ` (8 preceding siblings ...)
  2022-09-14  9:36 ` [PATCH v2 09/34] SecurityPkg: Add LOONGARCH64 architecture for " Chao Li
@ 2022-09-14  9:36 ` Chao Li
  2022-09-15  8:56   ` Gao, Zhichao
  9 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-14  9:36 UTC (permalink / raw)
  To: devel; +Cc: Ray Ni, Zhichao Gao

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH64 architecture to ShellPkg for EDK2 CI testing.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>

Signed-off-by: Chao Li <lichao@loongson.cn>
---
 ShellPkg/ShellPkg.dsc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc
index 38fde3dc71..dd0d88603f 100644
--- a/ShellPkg/ShellPkg.dsc
+++ b/ShellPkg/ShellPkg.dsc
@@ -4,6 +4,7 @@
 # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
 # Copyright (c) 2018 - 2020, Arm Limited. All rights reserved.<BR>
 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
 #
 #    SPDX-License-Identifier: BSD-2-Clause-Patent
 #
@@ -15,7 +16,7 @@
   PLATFORM_VERSION               = 1.02
   DSC_SPECIFICATION              = 0x00010006
   OUTPUT_DIRECTORY               = Build/Shell
-  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64
+  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
   SKUID_IDENTIFIER               = DEFAULT
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 10/34] ShellPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 10/34] ShellPkg: " Chao Li
@ 2022-09-15  8:56   ` Gao, Zhichao
  2022-09-15 11:27     ` [edk2-devel] " Chao Li
  0 siblings, 1 reply; 31+ messages in thread
From: Gao, Zhichao @ 2022-09-15  8:56 UTC (permalink / raw)
  To: Chao Li, devel@edk2.groups.io; +Cc: Ni, Ray

Reviewed-by: Zhichao Gao <zhichao.gao@intel.com> 

Please add Mike's R-B. If the patches are not changed, you can keep the received R-B so the maintainers/reviewers can avoid review the same content again.

Thanks,
Zhichao

> -----Original Message-----
> From: Chao Li <lichao@loongson.cn>
> Sent: Wednesday, September 14, 2022 5:36 PM
> To: devel@edk2.groups.io
> Cc: Ni, Ray <ray.ni@intel.com>; Gao, Zhichao <zhichao.gao@intel.com>
> Subject: [PATCH v2 10/34] ShellPkg: Add LOONGARCH64 architecture for
> EDK2 CI.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
> 
> Add LOONGARCH64 architecture to ShellPkg for EDK2 CI testing.
> 
> Cc: Ray Ni <ray.ni@intel.com>
> Cc: Zhichao Gao <zhichao.gao@intel.com>
> 
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
>  ShellPkg/ShellPkg.dsc | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc index
> 38fde3dc71..dd0d88603f 100644
> --- a/ShellPkg/ShellPkg.dsc
> +++ b/ShellPkg/ShellPkg.dsc
> @@ -4,6 +4,7 @@
>  # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR> #
> Copyright (c) 2018 - 2020, Arm Limited. All rights reserved.<BR> # Copyright (c)
> 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>+# Copyright (c) 2022, Loongson Technology Corporation
> Limited. All rights reserved.<BR> # #    SPDX-License-Identifier: BSD-2-Clause-
> Patent #@@ -15,7 +16,7 @@
>    PLATFORM_VERSION               = 1.02   DSC_SPECIFICATION              =
> 0x00010006   OUTPUT_DIRECTORY               = Build/Shell-
> SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64+
> SUPPORTED_ARCHITECTURES        =
> IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64   BUILD_TARGETS
> = DEBUG|RELEASE|NOOPT   SKUID_IDENTIFIER               = DEFAULT --
> 2.27.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [edk2-devel] [PATCH v2 10/34] ShellPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-15  8:56   ` Gao, Zhichao
@ 2022-09-15 11:27     ` Chao Li
  0 siblings, 0 replies; 31+ messages in thread
From: Chao Li @ 2022-09-15 11:27 UTC (permalink / raw)
  To: devel@edk2.groups.io, zhichao.gao@intel.com
  Cc: "devel@edk2.groups.io", "Ni, Ray"

[-- Attachment #1: Type: text/plain, Size: 2077 bytes --]

Zhichao,
Ok, I will add all of R-B information in the V3. Thanks for reminding. :)

Thanks,
Chao
--------

On 9月 15 2022, at 4:56 下午, "Gao, Zhichao" <zhichao.gao@intel.com> wrote:
> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
>
> Please add Mike's R-B. If the patches are not changed, you can keep the received R-B so the maintainers/reviewers can avoid review the same content again.
> Thanks,
> Zhichao
>
> > -----Original Message-----
> > From: Chao Li <lichao@loongson.cn>
> > Sent: Wednesday, September 14, 2022 5:36 PM
> > To: devel@edk2.groups.io
> > Cc: Ni, Ray <ray.ni@intel.com>; Gao, Zhichao <zhichao.gao@intel.com>
> > Subject: [PATCH v2 10/34] ShellPkg: Add LOONGARCH64 architecture for
> > EDK2 CI.
> >
> > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
> >
> > Add LOONGARCH64 architecture to ShellPkg for EDK2 CI testing.
> >
> > Cc: Ray Ni <ray.ni@intel.com>
> > Cc: Zhichao Gao <zhichao.gao@intel.com>
> >
> > Signed-off-by: Chao Li <lichao@loongson.cn>
> > ---
> > ShellPkg/ShellPkg.dsc | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc index
> > 38fde3dc71..dd0d88603f 100644
> > --- a/ShellPkg/ShellPkg.dsc
> > +++ b/ShellPkg/ShellPkg.dsc
> > @@ -4,6 +4,7 @@
> > # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR> #
> > Copyright (c) 2018 - 2020, Arm Limited. All rights reserved.<BR> # Copyright (c)
> > 2020, Hewlett Packard Enterprise Development LP. All rights
> > reserved.<BR>+# Copyright (c) 2022, Loongson Technology Corporation
> > Limited. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-
> > Patent #@@ -15,7 +16,7 @@
> > PLATFORM_VERSION = 1.02 DSC_SPECIFICATION =
> > 0x00010006 OUTPUT_DIRECTORY = Build/Shell-
> > SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64+
> > SUPPORTED_ARCHITECTURES =
> > IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64 BUILD_TARGETS
> > = DEBUG|RELEASE|NOOPT SKUID_IDENTIFIER = DEFAULT --
> > 2.27.0
>
>
>
> 
>


[-- Attachment #2: Type: text/html, Size: 2779 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions " Chao Li
@ 2022-09-23  6:22   ` Chao Li
  2022-09-23 15:37   ` Michael D Kinney
  1 sibling, 0 replies; 31+ messages in thread
From: Chao Li @ 2022-09-23  6:22 UTC (permalink / raw)
  To: Michael D Kinney; +Cc: Liming Gao, Zhiguang Liu, devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 4560 bytes --]

Hi Mike,
In the V2, I updated the IANA URL link in Dhcp.h, can you review this patch again?

Thanks,
Chao
--------

On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> HTTP/PXE boot LOONGARCH64 related definitions for EDK2 CI.
> For the LOONGARCH values, please seeing following URL section
> "Processor Architecture Types":
> https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml
>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> MdePkg/Include/IndustryStandard/Dhcp.h | 45 ++++++++++++++------------
> 1 file changed, 25 insertions(+), 20 deletions(-)
>
> diff --git a/MdePkg/Include/IndustryStandard/Dhcp.h b/MdePkg/Include/IndustryStandard/Dhcp.h
> index f209f1b2eb..46ab4f8e75 100644
> --- a/MdePkg/Include/IndustryStandard/Dhcp.h
> +++ b/MdePkg/Include/IndustryStandard/Dhcp.h
> @@ -4,6 +4,7 @@
>
>
> Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
> Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> + Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> SPDX-License-Identifier: BSD-2-Clause-Patent
> **/
>
>
> @@ -256,27 +257,31 @@ typedef enum {
>
> ///
> /// Processor Architecture Types
> -/// These identifiers are defined by IETF:
> -/// http://www.ietf.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml
> +/// These identifiers are defined by IANA:
> +/// https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml
> ///
> -#define PXE_CLIENT_ARCH_X86_BIOS 0x0000 /// x86 BIOS for PXE
> -#define PXE_CLIENT_ARCH_IPF 0x0002 /// Itanium for PXE
> -#define PXE_CLIENT_ARCH_IA32 0x0006 /// x86 uefi for PXE
> -#define PXE_CLIENT_ARCH_X64 0x0007 /// x64 uefi for PXE
> -#define PXE_CLIENT_ARCH_EBC 0x0009 /// EBC for PXE
> -#define PXE_CLIENT_ARCH_ARM 0x000A /// Arm uefi 32 for PXE
> -#define PXE_CLIENT_ARCH_AARCH64 0x000B /// Arm uefi 64 for PXE
> -#define PXE_CLIENT_ARCH_RISCV32 0x0019 /// RISC-V uefi 32 for PXE
> -#define PXE_CLIENT_ARCH_RISCV64 0x001B /// RISC-V uefi 64 for PXE
> -#define PXE_CLIENT_ARCH_RISCV128 0x001D /// RISC-V uefi 128 for PXE
> +#define PXE_CLIENT_ARCH_X86_BIOS 0x0000 /// x86 BIOS for PXE
> +#define PXE_CLIENT_ARCH_IPF 0x0002 /// Itanium for PXE
> +#define PXE_CLIENT_ARCH_IA32 0x0006 /// x86 uefi for PXE
> +#define PXE_CLIENT_ARCH_X64 0x0007 /// x64 uefi for PXE
> +#define PXE_CLIENT_ARCH_EBC 0x0009 /// EBC for PXE
> +#define PXE_CLIENT_ARCH_ARM 0x000A /// Arm uefi 32 for PXE
> +#define PXE_CLIENT_ARCH_AARCH64 0x000B /// Arm uefi 64 for PXE
> +#define PXE_CLIENT_ARCH_RISCV32 0x0019 /// RISC-V uefi 32 for PXE
> +#define PXE_CLIENT_ARCH_RISCV64 0x001B /// RISC-V uefi 64 for PXE
> +#define PXE_CLIENT_ARCH_RISCV128 0x001D /// RISC-V uefi 128 for PXE
> +#define PXE_CLIENT_ARCH_LOONGARCH32 0x0025 /// LoongArch uefi 32 for PXE
> +#define PXE_CLIENT_ARCH_LOONGARCH64 0x0027 /// LoongArch uefi 64 for PXE
>
>
> -#define HTTP_CLIENT_ARCH_IA32 0x000F /// x86 uefi boot from http
> -#define HTTP_CLIENT_ARCH_X64 0x0010 /// x64 uefi boot from http
> -#define HTTP_CLIENT_ARCH_EBC 0x0011 /// EBC boot from http
> -#define HTTP_CLIENT_ARCH_ARM 0x0012 /// Arm uefi 32 boot from http
> -#define HTTP_CLIENT_ARCH_AARCH64 0x0013 /// Arm uefi 64 boot from http
> -#define HTTP_CLIENT_ARCH_RISCV32 0x001A /// RISC-V uefi 32 boot from http
> -#define HTTP_CLIENT_ARCH_RISCV64 0x001C /// RISC-V uefi 64 boot from http
> -#define HTTP_CLIENT_ARCH_RISCV128 0x001E /// RISC-V uefi 128 boot from http
> +#define HTTP_CLIENT_ARCH_IA32 0x000F /// x86 uefi boot from http
> +#define HTTP_CLIENT_ARCH_X64 0x0010 /// x64 uefi boot from http
> +#define HTTP_CLIENT_ARCH_EBC 0x0011 /// EBC boot from http
> +#define HTTP_CLIENT_ARCH_ARM 0x0012 /// Arm uefi 32 boot from http
> +#define HTTP_CLIENT_ARCH_AARCH64 0x0013 /// Arm uefi 64 boot from http
> +#define HTTP_CLIENT_ARCH_RISCV32 0x001A /// RISC-V uefi 32 boot from http
> +#define HTTP_CLIENT_ARCH_RISCV64 0x001C /// RISC-V uefi 64 boot from http
> +#define HTTP_CLIENT_ARCH_RISCV128 0x001E /// RISC-V uefi 128 boot from http
> +#define HTTP_CLIENT_ARCH_LOONGARCH32 0x0026 /// LoongArch uefi 32 boot from http
> +#define HTTP_CLIENT_ARCH_LOONGARCH64 0x0028 /// LoongArch uefi 64 boot from http
>
>
> #endif
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 5558 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml
  2022-09-14  9:35 ` [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml Chao Li
@ 2022-09-23  6:56   ` Chao Li
  2022-09-23 15:37   ` Michael D Kinney
  1 sibling, 0 replies; 31+ messages in thread
From: Chao Li @ 2022-09-23  6:56 UTC (permalink / raw)
  To: Michael D Kinney, Liming Gao, Zhiguang Liu; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

Hi Mike, Liming and Zhiguang,
This patch has not been reviewed, would you please review it?

Thanks,
Chao
--------

On 9月 14 2022, at 5:35 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> DebugSupport.h is all defined by UEFI Spec, most of the code
> doesn't fit EDKII coding style, add it to IgnoreFiles field to
> make CI ECC check pass.
>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> MdePkg/MdePkg.ci.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/MdePkg/MdePkg.ci.yaml b/MdePkg/MdePkg.ci.yaml
> index 054233ebc7..9d141aa3cb 100644
> --- a/MdePkg/MdePkg.ci.yaml
> +++ b/MdePkg/MdePkg.ci.yaml
> @@ -52,6 +52,7 @@
> "Include/IndustryStandard/UefiTcgPlatform.h",
>
> "Include/Library/PcdLib.h",
> "Include/Library/SafeIntLib.h",
> + "Include/Protocol/DebugSupport.h",
> "Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLib.c"
> ]
> },
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 1561 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition to MdePkg.ci.yaml
  2022-09-14  9:35 ` [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition " Chao Li
@ 2022-09-23  7:00   ` Chao Li
  2022-09-23 15:37   ` Michael D Kinney
  1 sibling, 0 replies; 31+ messages in thread
From: Chao Li @ 2022-09-23  7:00 UTC (permalink / raw)
  To: Michael D Kinney, Liming Gao, Zhiguang Liu; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]

Hi Mike, Liming and Zhiguang,
This patch has not been reviewed, would you please review it?

Thanks,
Chao
--------

On 9月 14 2022, at 5:35 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> If the new Arch register is defined in BaseLib.h when running
> the CI tests, it will give an ECC check error. Add the
> LoongArch register defined in the IgnoreFiles field to make
> the CI ECC check pass.
>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> MdePkg/MdePkg.ci.yaml | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/MdePkg/MdePkg.ci.yaml b/MdePkg/MdePkg.ci.yaml
> index 9d141aa3cb..19bc0138cb 100644
> --- a/MdePkg/MdePkg.ci.yaml
> +++ b/MdePkg/MdePkg.ci.yaml
> @@ -27,6 +27,18 @@
> "8005", "void",
>
> "8005", "va_list.__ap",
> "8005", "__stack_chk_guard",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S0",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S1",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S2",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S3",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S4",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S5",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S6",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S7",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.S8",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.SP",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.FP",
> + "8005", "BASE_LIBRARY_JUMP_BUFFER.RA",
> "8001", "MSG_IPv6_DP",
> "8001", "MSG_IPv4_DP",
> "8001", "DEFAULT_ToS",
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 2480 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:35 ` [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI Chao Li
@ 2022-09-23  7:01   ` Chao Li
  2022-09-26  6:33     ` 回复: [edk2-devel] " gaoliming
  0 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-23  7:01 UTC (permalink / raw)
  To: Ray Ni; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]

Hi Ray,
This patch has not been reviewed, would you please review it?

Thanks,
Chao
--------

On 9月 14 2022, at 5:35 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> Add LOONGARCH64 architecture for EDK2 CI testing.
> Cc: Ray Ni <ray.ni@intel.com>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> FatPkg/FatPkg.dsc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/FatPkg/FatPkg.dsc b/FatPkg/FatPkg.dsc
> index 6fa439e440..076b577972 100644
> --- a/FatPkg/FatPkg.dsc
> +++ b/FatPkg/FatPkg.dsc
> @@ -5,6 +5,7 @@
> # for EDK II Prime release.
>
> # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
> # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> #
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> @@ -15,7 +16,7 @@
> PLATFORM_GUID = 25b55dbc-9d0b-4a32-80da-46e1273d622c
>
> PLATFORM_VERSION = 0.3
> DSC_SPECIFICATION = 0x00010005
> - SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64
> + SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
> OUTPUT_DIRECTORY = Build/Fat
> BUILD_TARGETS = DEBUG|RELEASE|NOOPT
> SKUID_IDENTIFIER = DEFAULT
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 2028 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 04/34] FmpDevicePkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 04/34] FmpDevicePkg: " Chao Li
@ 2022-09-23  7:03   ` Chao Li
  2022-09-26  4:34     ` 回复: " gaoliming
  0 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-23  7:03 UTC (permalink / raw)
  To: Liming Gao, Michael D Kinney, Guomin Jiang, Wei6 Xu; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1578 bytes --]

Hi Liming, Mike, Guomin and Wei,
This patch has not been reviewed, would you please review it?

Thanks,
Chao
--------

On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> Add LOONGARCH64 architecture for EDK2 CI testing.
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Guomin Jiang <guomin.jiang@intel.com>
> Cc: Wei6 Xu <wei6.xu@intel.com>
>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> FmpDevicePkg/FmpDevicePkg.dsc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/FmpDevicePkg/FmpDevicePkg.dsc b/FmpDevicePkg/FmpDevicePkg.dsc
> index 7b1af285dd..f9f26c54bb 100644
> --- a/FmpDevicePkg/FmpDevicePkg.dsc
> +++ b/FmpDevicePkg/FmpDevicePkg.dsc
> @@ -9,6 +9,7 @@
> # Copyright (c) Microsoft Corporation.<BR>
>
> # Copyright (c) 2018 - 2021, Intel Corporation. All rights reserved.<BR>
> # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> #
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> @@ -20,7 +21,7 @@
> PLATFORM_VERSION = 0.1
>
> DSC_SPECIFICATION = 0x00010005
> OUTPUT_DIRECTORY = Build/FmpDevicePkg
> - SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64
> + SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64|LOONGARCH64
> BUILD_TARGETS = DEBUG|RELEASE|NOOPT
> SKUID_IDENTIFIER = DEFAULT
>
>
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 2260 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 05/34] NetworkPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 05/34] NetworkPkg: " Chao Li
@ 2022-09-23  7:06   ` Chao Li
  0 siblings, 0 replies; 31+ messages in thread
From: Chao Li @ 2022-09-23  7:06 UTC (permalink / raw)
  To: Maciej Rabeda, Jiaxin Wu, Siyuan Fu; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

Hi Maciej, Jiaxin and Siyuan,
This patch has not been reviewed, would you please review it?

Thanks,
Chao
--------

On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> Add LOONGARCH64 architecture for EDK2 CI testing.
> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
> Cc: Jiaxin Wu <jiaxin.wu@intel.com>
> Cc: Siyuan Fu <siyuan.fu@intel.com>
>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> NetworkPkg/NetworkPkg.dsc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/NetworkPkg/NetworkPkg.dsc b/NetworkPkg/NetworkPkg.dsc
> index 762134023d..6c231c97b5 100644
> --- a/NetworkPkg/NetworkPkg.dsc
> +++ b/NetworkPkg/NetworkPkg.dsc
> @@ -4,6 +4,7 @@
> # (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
>
> # Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
> # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -14,7 +15,7 @@
> PLATFORM_VERSION = 0.98
>
> DSC_SPECIFICATION = 0x00010005
> OUTPUT_DIRECTORY = Build/NetworkPkg
> - SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64
> + SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
> BUILD_TARGETS = DEBUG|RELEASE|NOOPT
> SKUID_IDENTIFIER = DEFAULT
>
>
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 2209 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 06/34] NetworkPkg/HttpBootDxe: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 06/34] NetworkPkg/HttpBootDxe: " Chao Li
@ 2022-09-23  7:07   ` Chao Li
  2022-09-23  8:05   ` Wu, Jiaxin
  1 sibling, 0 replies; 31+ messages in thread
From: Chao Li @ 2022-09-23  7:07 UTC (permalink / raw)
  To: Maciej Rabeda, Jiaxin Wu, Siyuan Fu; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1605 bytes --]

Hi Maciej, Jiaxin and Siyuan,
This patch has not been reviewed, would you please review it?

Thanks,
Chao
--------

On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> Add LOONGARCH architecture for EDK2 CI testing.
> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
> Cc: Jiaxin Wu <jiaxin.wu@intel.com>
> Cc: Siyuan Fu <siyuan.fu@intel.com>
>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> NetworkPkg/HttpBootDxe/HttpBootDhcp4.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h b/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
> index d76f0e84d6..f00fabead2 100644
> --- a/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
> +++ b/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
> @@ -3,6 +3,7 @@
>
>
> Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
> Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> SPDX-License-Identifier: BSD-2-Clause-Patent
>
>
> **/
> @@ -40,6 +41,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
> #define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE HTTP_CLIENT_ARCH_RISCV64
>
> #elif defined (MDE_CPU_EBC)
> #define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE HTTP_CLIENT_ARCH_EBC
> +#elif defined (MDE_CPU_LOONGARCH64)
> +#define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE HTTP_CLIENT_ARCH_LOONGARCH64
> #endif
>
>
> /// DHCP offer types among HTTP boot.
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 2253 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 07/34] CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 07/34] CryptoPkg: " Chao Li
@ 2022-09-23  7:09   ` Chao Li
  2022-09-23  7:14     ` [edk2-devel] " Yao, Jiewen
  0 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-23  7:09 UTC (permalink / raw)
  To: Jiewen Yao, Jian J Wang, Xiaoyu Lu, Guomin Jiang; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 12489 bytes --]

Hi Jiewen, Jian, Xiaoyu and Guomin,
This patch has not been reviewed, would you please review it?

Thanks,
Chao
--------

On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> Add LOONGARCH64 architecture for EDK2 CI testing.
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
> Cc: Guomin Jiang <guomin.jiang@intel.com>
>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> CryptoPkg/CryptoPkg.dsc | 3 ++-
> CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf | 6 +++++-
> CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf | 4 ++++
> CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf | 3 ++-
> CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf | 3 ++-
> CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf | 3 ++-
> CryptoPkg/Library/Include/CrtLibSupport.h | 3 ++-
> CryptoPkg/Library/OpensslLib/OpensslLib.inf | 2 ++
> CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 2 ++
> CryptoPkg/Library/TlsLib/TlsLib.inf | 3 ++-
> CryptoPkg/Library/TlsLibNull/TlsLibNull.inf | 3 ++-
> 11 files changed, 27 insertions(+), 8 deletions(-)
>
> diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc
> index 50e7721f25..c3a02aafb0 100644
> --- a/CryptoPkg/CryptoPkg.dsc
> +++ b/CryptoPkg/CryptoPkg.dsc
> @@ -4,6 +4,7 @@
> #
>
> # Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
> # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -19,7 +20,7 @@
> PLATFORM_VERSION = 0.98
>
> DSC_SPECIFICATION = 0x00010005
> OUTPUT_DIRECTORY = Build/CryptoPkg
> - SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64
> + SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64|LOONGARCH64
> BUILD_TARGETS = DEBUG|RELEASE|NOOPT
> SKUID_IDENTIFIER = DEFAULT
>
>
> diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
> index 3d7b917103..f8790d2c72 100644
> --- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
> @@ -8,6 +8,7 @@
> #
>
> # Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>
> # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -24,7 +25,7 @@
> #
>
> # The following information is for reference only and not required by the build tools.
> #
> -# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
> #
>
>
> [Sources]
> @@ -74,6 +75,9 @@
> [Sources.RISCV64]
>
> Rand/CryptRand.c
>
>
> +[Sources.LOONGARCH64]
> + Rand/CryptRand.c
> +
> [Packages]
> MdePkg/MdePkg.dec
> CryptoPkg/CryptoPkg.dec
> diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> index d28fb98b66..7da789d00e 100644
> --- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> @@ -13,6 +13,7 @@
> #
>
> # Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>
> # Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -79,6 +80,9 @@
> [Sources.RISCV64]
>
> Rand/CryptRand.c
>
>
> +[Sources.LOONGARCH64]
> + Rand/CryptRand.c
> +
> [Packages]
> MdePkg/MdePkg.dec
> CryptoPkg/CryptoPkg.dec
> diff --git a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
> index 63d1d82d19..1d8b502813 100644
> --- a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
> +++ b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
> @@ -8,6 +8,7 @@
> #
>
> # Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>
> # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -24,7 +25,7 @@
> #
>
> # The following information is for reference only and not required by the build tools.
> #
> -# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
> #
>
>
> [Sources]
> diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
> index baa4433cbe..b4945de336 100644
> --- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
> @@ -4,6 +4,7 @@
> #
>
> # Copyright (C) Microsoft Corporation. All rights reserved.
> # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -22,7 +23,7 @@
> #
>
> # The following information is for reference only and not required by the build tools.
> #
> -# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
> #
>
>
> [Packages]
> diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
> index 038ca71890..e7d153db0b 100644
> --- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
> @@ -4,6 +4,7 @@
> #
>
> # Copyright (C) Microsoft Corporation. All rights reserved.
> # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -21,7 +22,7 @@
> #
>
> # The following information is for reference only and not required by the build tools.
> #
> -# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
> #
>
>
> [Packages]
> diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h
> index e49060124f..5072c343da 100644
> --- a/CryptoPkg/Library/Include/CrtLibSupport.h
> +++ b/CryptoPkg/Library/Include/CrtLibSupport.h
> @@ -4,6 +4,7 @@
>
>
> Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>
> Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> SPDX-License-Identifier: BSD-2-Clause-Patent
>
>
> **/
> @@ -46,7 +47,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
> #define CONFIG_HEADER_BN_H
>
>
>
> #if !defined (SIXTY_FOUR_BIT) && !defined (THIRTY_TWO_BIT)
> - #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64)
> + #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64) || defined (MDE_CPU_LOONGARCH64)
> //
> // With GCC we would normally use SIXTY_FOUR_BIT_LONG, but MSVC needs
> // SIXTY_FOUR_BIT, because 'long' is 32-bit and only 'long long' is
> diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
> index c899b811b1..f0ca72eeed 100644
> --- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf
> +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
> @@ -3,6 +3,7 @@
> #
>
> # Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
> # (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -675,6 +676,7 @@
> GCC:*_*_ARM_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable
>
> GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
> GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
> + GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
> GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
> GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
> GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-error=implicit-function-declaration -Wno-error=ignored-pragma-optimize
> diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
> index 0ec3724541..195016fd3d 100644
> --- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
> +++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
> @@ -3,6 +3,7 @@
> #
>
> # Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
> # (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -624,6 +625,7 @@
> GCC:*_*_ARM_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable
>
> GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
> GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
> + GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable
> GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
> GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
> GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-error=implicit-function-declaration -Wno-error=ignored-pragma-optimize
> diff --git a/CryptoPkg/Library/TlsLib/TlsLib.inf b/CryptoPkg/Library/TlsLib/TlsLib.inf
> index bc61cda745..20b0ea6832 100644
> --- a/CryptoPkg/Library/TlsLib/TlsLib.inf
> +++ b/CryptoPkg/Library/TlsLib/TlsLib.inf
> @@ -3,6 +3,7 @@
> #
>
> # Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
> # (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -19,7 +20,7 @@
> #
>
> # The following information is for reference only and not required by the build tools.
> #
> -# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
> #
>
>
> [Sources]
> diff --git a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
> index b2920ddacf..12d7cc764a 100644
> --- a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
> +++ b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
> @@ -3,6 +3,7 @@
> #
>
> # Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
> # (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -19,7 +20,7 @@
> #
>
> # The following information is for reference only and not required by the build tools.
> #
> -# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
> #
>
>
> [Sources]
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 15417 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 09/34] SecurityPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 09/34] SecurityPkg: Add LOONGARCH64 architecture for " Chao Li
@ 2022-09-23  7:10   ` Chao Li
  2022-09-23  7:14     ` Yao, Jiewen
  0 siblings, 1 reply; 31+ messages in thread
From: Chao Li @ 2022-09-23  7:10 UTC (permalink / raw)
  To: Jiewen Yao, Jian J Wang; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]

Hi Jiewen and Jian,
This patch has not been reviewed, would you please review it?

Thanks,
Chao
--------

On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn> wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
>
> Add LOONGARCH64 architecture to SecurityPkg for EDK2 CI testing.
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
>
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
> SecurityPkg/SecurityPkg.dsc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/SecurityPkg/SecurityPkg.dsc b/SecurityPkg/SecurityPkg.dsc
> index f48187650f..6bf53c5658 100644
> --- a/SecurityPkg/SecurityPkg.dsc
> +++ b/SecurityPkg/SecurityPkg.dsc
> @@ -3,6 +3,7 @@
> #
>
> # Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
> # (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> #
> ##
> @@ -13,7 +14,7 @@
> PLATFORM_VERSION = 0.98
>
> DSC_SPECIFICATION = 0x00010005
> OUTPUT_DIRECTORY = Build/SecurityPkg
> - SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64
> + SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
> BUILD_TARGETS = DEBUG|RELEASE|NOOPT
> SKUID_IDENTIFIER = DEFAULT
>
>
> --
> 2.27.0
>


[-- Attachment #2: Type: text/html, Size: 2076 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 09/34] SecurityPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-23  7:10   ` Chao Li
@ 2022-09-23  7:14     ` Yao, Jiewen
  0 siblings, 0 replies; 31+ messages in thread
From: Yao, Jiewen @ 2022-09-23  7:14 UTC (permalink / raw)
  To: chao li, Wang, Jian J; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]

Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>

From: chao li <lichao@loongson.cn>
Sent: Friday, September 23, 2022 3:11 PM
To: Yao, Jiewen <jiewen.yao@intel.com>; Wang, Jian J <jian.j.wang@intel.com>
Cc: devel@edk2.groups.io
Subject: Re: [PATCH v2 09/34] SecurityPkg: Add LOONGARCH64 architecture for EDK2 CI.

Hi Jiewen and Jian,
This patch has not been reviewed, would you please review it?


Thanks,
Chao
--------
On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn<mailto:lichao@loongson.cn>> wrote:
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH64 architecture to SecurityPkg for EDK2 CI testing.

Cc: Jiewen Yao <jiewen.yao@intel.com<mailto:jiewen.yao@intel.com>>
Cc: Jian J Wang <jian.j.wang@intel.com<mailto:jian.j.wang@intel.com>>

Signed-off-by: Chao Li <lichao@loongson.cn<mailto:lichao@loongson.cn>>
---
SecurityPkg/SecurityPkg.dsc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SecurityPkg/SecurityPkg.dsc b/SecurityPkg/SecurityPkg.dsc
index f48187650f..6bf53c5658 100644
--- a/SecurityPkg/SecurityPkg.dsc
+++ b/SecurityPkg/SecurityPkg.dsc
@@ -3,6 +3,7 @@
#

# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>

# (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -13,7 +14,7 @@
PLATFORM_VERSION = 0.98

DSC_SPECIFICATION = 0x00010005

OUTPUT_DIRECTORY = Build/SecurityPkg

- SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64

+ SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64

BUILD_TARGETS = DEBUG|RELEASE|NOOPT

SKUID_IDENTIFIER = DEFAULT


--
2.27.0

[-- Attachment #2: Type: text/html, Size: 7004 bytes --]

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* Re: [edk2-devel] [PATCH v2 07/34] CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-23  7:09   ` Chao Li
@ 2022-09-23  7:14     ` Yao, Jiewen
  0 siblings, 0 replies; 31+ messages in thread
From: Yao, Jiewen @ 2022-09-23  7:14 UTC (permalink / raw)
  To: devel@edk2.groups.io, lichao@loongson.cn, Wang, Jian J,
	Lu, Xiaoyu1, Jiang, Guomin

[-- Attachment #1: Type: text/plain, Size: 12838 bytes --]

Reviewed-by: Jiewen Yao Jiewen.yao@intel.com<mailto:Jiewen.yao@intel.com>


From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Chao Li
Sent: Friday, September 23, 2022 3:09 PM
To: Yao, Jiewen <jiewen.yao@intel.com>; Wang, Jian J <jian.j.wang@intel.com>; Lu, Xiaoyu1 <xiaoyu1.lu@intel.com>; Jiang, Guomin <guomin.jiang@intel.com>
Cc: devel@edk2.groups.io
Subject: Re: [edk2-devel] [PATCH v2 07/34] CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI.

Hi Jiewen, Jian, Xiaoyu and Guomin,
This patch has not been reviewed, would you please review it?


Thanks,
Chao
--------
On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn<mailto:lichao@loongson.cn>> wrote:
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

Add LOONGARCH64 architecture for EDK2 CI testing.

Cc: Jiewen Yao <jiewen.yao@intel.com<mailto:jiewen.yao@intel.com>>
Cc: Jian J Wang <jian.j.wang@intel.com<mailto:jian.j.wang@intel.com>>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com<mailto:xiaoyu1.lu@intel.com>>
Cc: Guomin Jiang <guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>>

Signed-off-by: Chao Li <lichao@loongson.cn<mailto:lichao@loongson.cn>>
---
CryptoPkg/CryptoPkg.dsc | 3 ++-
CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf | 6 +++++-
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf | 4 ++++
CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf | 3 ++-
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf | 3 ++-
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf | 3 ++-
CryptoPkg/Library/Include/CrtLibSupport.h | 3 ++-
CryptoPkg/Library/OpensslLib/OpensslLib.inf | 2 ++
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 2 ++
CryptoPkg/Library/TlsLib/TlsLib.inf | 3 ++-
CryptoPkg/Library/TlsLibNull/TlsLibNull.inf | 3 ++-
11 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc
index 50e7721f25..c3a02aafb0 100644
--- a/CryptoPkg/CryptoPkg.dsc
+++ b/CryptoPkg/CryptoPkg.dsc
@@ -4,6 +4,7 @@
#

# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>

# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -19,7 +20,7 @@
PLATFORM_VERSION = 0.98

DSC_SPECIFICATION = 0x00010005

OUTPUT_DIRECTORY = Build/CryptoPkg

- SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64

+ SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64|LOONGARCH64

BUILD_TARGETS = DEBUG|RELEASE|NOOPT

SKUID_IDENTIFIER = DEFAULT


diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
index 3d7b917103..f8790d2c72 100644
--- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
@@ -8,6 +8,7 @@
#

# Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>

# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -24,7 +25,7 @@
#

# The following information is for reference only and not required by the build tools.

#

-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64

+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

#


[Sources]

@@ -74,6 +75,9 @@
[Sources.RISCV64]

Rand/CryptRand.c


+[Sources.LOONGARCH64]

+ Rand/CryptRand.c

+

[Packages]

MdePkg/MdePkg.dec

CryptoPkg/CryptoPkg.dec

diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
index d28fb98b66..7da789d00e 100644
--- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
@@ -13,6 +13,7 @@
#

# Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>

# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -79,6 +80,9 @@
[Sources.RISCV64]

Rand/CryptRand.c


+[Sources.LOONGARCH64]

+ Rand/CryptRand.c

+

[Packages]

MdePkg/MdePkg.dec

CryptoPkg/CryptoPkg.dec

diff --git a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
index 63d1d82d19..1d8b502813 100644
--- a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
+++ b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
@@ -8,6 +8,7 @@
#

# Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>

# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -24,7 +25,7 @@
#

# The following information is for reference only and not required by the build tools.

#

-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64

+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

#


[Sources]

diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
index baa4433cbe..b4945de336 100644
--- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
@@ -4,6 +4,7 @@
#

# Copyright (C) Microsoft Corporation. All rights reserved.

# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -22,7 +23,7 @@
#

# The following information is for reference only and not required by the build tools.

#

-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64

+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

#


[Packages]

diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
index 038ca71890..e7d153db0b 100644
--- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
@@ -4,6 +4,7 @@
#

# Copyright (C) Microsoft Corporation. All rights reserved.

# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -21,7 +22,7 @@
#

# The following information is for reference only and not required by the build tools.

#

-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64

+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

#


[Packages]

diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h
index e49060124f..5072c343da 100644
--- a/CryptoPkg/Library/Include/CrtLibSupport.h
+++ b/CryptoPkg/Library/Include/CrtLibSupport.h
@@ -4,6 +4,7 @@

Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>

Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

+Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

SPDX-License-Identifier: BSD-2-Clause-Patent


**/

@@ -46,7 +47,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#define CONFIG_HEADER_BN_H


#if !defined (SIXTY_FOUR_BIT) && !defined (THIRTY_TWO_BIT)

- #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64)

+ #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64) || defined (MDE_CPU_LOONGARCH64)

//

// With GCC we would normally use SIXTY_FOUR_BIT_LONG, but MSVC needs

// SIXTY_FOUR_BIT, because 'long' is 32-bit and only 'long long' is

diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
index c899b811b1..f0ca72eeed 100644
--- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf
+++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
@@ -3,6 +3,7 @@
#

# Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>

# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -675,6 +676,7 @@
GCC:*_*_ARM_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable

GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable

GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable

+ GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable

GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized

GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized

GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-error=implicit-function-declaration -Wno-error=ignored-pragma-optimize

diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
index 0ec3724541..195016fd3d 100644
--- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
+++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
@@ -3,6 +3,7 @@
#

# Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>

# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -624,6 +625,7 @@
GCC:*_*_ARM_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable

GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable

GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable

+ GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable

GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized

GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized

GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-error=implicit-function-declaration -Wno-error=ignored-pragma-optimize

diff --git a/CryptoPkg/Library/TlsLib/TlsLib.inf b/CryptoPkg/Library/TlsLib/TlsLib.inf
index bc61cda745..20b0ea6832 100644
--- a/CryptoPkg/Library/TlsLib/TlsLib.inf
+++ b/CryptoPkg/Library/TlsLib/TlsLib.inf
@@ -3,6 +3,7 @@
#

# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>

# (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -19,7 +20,7 @@
#

# The following information is for reference only and not required by the build tools.

#

-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64

+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

#


[Sources]

diff --git a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
index b2920ddacf..12d7cc764a 100644
--- a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
+++ b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
@@ -3,6 +3,7 @@
#

# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>

# (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

# SPDX-License-Identifier: BSD-2-Clause-Patent

#

##

@@ -19,7 +20,7 @@
#

# The following information is for reference only and not required by the build tools.

#

-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64

+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

#


[Sources]

--
2.27.0


[-- Attachment #2: Type: text/html, Size: 36344 bytes --]

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 06/34] NetworkPkg/HttpBootDxe: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 06/34] NetworkPkg/HttpBootDxe: " Chao Li
  2022-09-23  7:07   ` Chao Li
@ 2022-09-23  8:05   ` Wu, Jiaxin
  1 sibling, 0 replies; 31+ messages in thread
From: Wu, Jiaxin @ 2022-09-23  8:05 UTC (permalink / raw)
  To: Chao Li, devel@edk2.groups.io; +Cc: Maciej Rabeda, Siyuan Fu

Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>

> -----Original Message-----
> From: Chao Li <lichao@loongson.cn>
> Sent: Wednesday, September 14, 2022 5:36 PM
> To: devel@edk2.groups.io
> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>; Wu, Jiaxin
> <jiaxin.wu@intel.com>; Siyuan Fu <siyuan.fu@intel.com>
> Subject: [PATCH v2 06/34] NetworkPkg/HttpBootDxe: Add LOONGARCH64
> architecture for EDK2 CI.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
> 
> Add LOONGARCH architecture for EDK2 CI testing.
> 
> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
> Cc: Jiaxin Wu <jiaxin.wu@intel.com>
> Cc: Siyuan Fu <siyuan.fu@intel.com>
> 
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
>  NetworkPkg/HttpBootDxe/HttpBootDhcp4.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
> b/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
> index d76f0e84d6..f00fabead2 100644
> --- a/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
> +++ b/NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
> @@ -3,6 +3,7 @@
> 
> 
>  Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
> 
>  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> 
> +Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
> 
>  SPDX-License-Identifier: BSD-2-Clause-Patent
> 
> 
> 
>  **/
> 
> @@ -40,6 +41,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
>  #define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE
> HTTP_CLIENT_ARCH_RISCV64
> 
>  #elif defined (MDE_CPU_EBC)
> 
>  #define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE
> HTTP_CLIENT_ARCH_EBC
> 
> +#elif defined (MDE_CPU_LOONGARCH64)
> 
> +#define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE
> HTTP_CLIENT_ARCH_LOONGARCH64
> 
>  #endif
> 
> 
> 
>  /// DHCP offer types among HTTP boot.
> 
> --
> 2.27.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions EDK2 CI.
  2022-09-14  9:36 ` [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions " Chao Li
  2022-09-23  6:22   ` Chao Li
@ 2022-09-23 15:37   ` Michael D Kinney
  1 sibling, 0 replies; 31+ messages in thread
From: Michael D Kinney @ 2022-09-23 15:37 UTC (permalink / raw)
  To: Chao Li, devel@edk2.groups.io, Kinney, Michael D
  Cc: Gao, Liming, Liu, Zhiguang

Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>

> -----Original Message-----
> From: Chao Li <lichao@loongson.cn>
> Sent: Wednesday, September 14, 2022 2:36 AM
> To: devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>
> Subject: [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions EDK2 CI.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
> 
> HTTP/PXE boot LOONGARCH64 related definitions for EDK2 CI.
> 
> For the LOONGARCH values, please seeing following URL section
> "Processor Architecture Types":
> https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml
> 
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> 
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
>  MdePkg/Include/IndustryStandard/Dhcp.h | 45 ++++++++++++++------------
>  1 file changed, 25 insertions(+), 20 deletions(-)
> 
> diff --git a/MdePkg/Include/IndustryStandard/Dhcp.h b/MdePkg/Include/IndustryStandard/Dhcp.h
> index f209f1b2eb..46ab4f8e75 100644
> --- a/MdePkg/Include/IndustryStandard/Dhcp.h
> +++ b/MdePkg/Include/IndustryStandard/Dhcp.h
> @@ -4,6 +4,7 @@
> 
> 
>    Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
> 
>    Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> 
> +  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> 
>    SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  **/
> 
> 
> 
> @@ -256,27 +257,31 @@ typedef enum {
> 
> 
>  ///
> 
>  /// Processor Architecture Types
> 
> -/// These identifiers are defined by IETF:
> 
> -/// http://www.ietf.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml
> 
> +/// These identifiers are defined by IANA:
> 
> +/// https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml
> 
>  ///
> 
> -#define PXE_CLIENT_ARCH_X86_BIOS  0x0000           /// x86 BIOS for PXE
> 
> -#define PXE_CLIENT_ARCH_IPF       0x0002           /// Itanium for PXE
> 
> -#define PXE_CLIENT_ARCH_IA32      0x0006           /// x86 uefi for PXE
> 
> -#define PXE_CLIENT_ARCH_X64       0x0007           /// x64 uefi for PXE
> 
> -#define PXE_CLIENT_ARCH_EBC       0x0009           /// EBC for PXE
> 
> -#define PXE_CLIENT_ARCH_ARM       0x000A           /// Arm uefi 32 for PXE
> 
> -#define PXE_CLIENT_ARCH_AARCH64   0x000B           /// Arm uefi 64 for PXE
> 
> -#define PXE_CLIENT_ARCH_RISCV32   0x0019           /// RISC-V uefi 32 for PXE
> 
> -#define PXE_CLIENT_ARCH_RISCV64   0x001B           /// RISC-V uefi 64 for PXE
> 
> -#define PXE_CLIENT_ARCH_RISCV128  0x001D           /// RISC-V uefi 128 for PXE
> 
> +#define PXE_CLIENT_ARCH_X86_BIOS     0x0000          /// x86 BIOS for PXE
> 
> +#define PXE_CLIENT_ARCH_IPF          0x0002          /// Itanium for PXE
> 
> +#define PXE_CLIENT_ARCH_IA32         0x0006          /// x86 uefi for PXE
> 
> +#define PXE_CLIENT_ARCH_X64          0x0007          /// x64 uefi for PXE
> 
> +#define PXE_CLIENT_ARCH_EBC          0x0009          /// EBC for PXE
> 
> +#define PXE_CLIENT_ARCH_ARM          0x000A          /// Arm uefi 32 for PXE
> 
> +#define PXE_CLIENT_ARCH_AARCH64      0x000B          /// Arm uefi 64 for PXE
> 
> +#define PXE_CLIENT_ARCH_RISCV32      0x0019          /// RISC-V uefi 32 for PXE
> 
> +#define PXE_CLIENT_ARCH_RISCV64      0x001B          /// RISC-V uefi 64 for PXE
> 
> +#define PXE_CLIENT_ARCH_RISCV128     0x001D          /// RISC-V uefi 128 for PXE
> 
> +#define PXE_CLIENT_ARCH_LOONGARCH32  0x0025          /// LoongArch uefi 32 for PXE
> 
> +#define PXE_CLIENT_ARCH_LOONGARCH64  0x0027          /// LoongArch uefi 64 for PXE
> 
> 
> 
> -#define HTTP_CLIENT_ARCH_IA32      0x000F          /// x86 uefi boot from http
> 
> -#define HTTP_CLIENT_ARCH_X64       0x0010          /// x64 uefi boot from http
> 
> -#define HTTP_CLIENT_ARCH_EBC       0x0011          /// EBC boot from http
> 
> -#define HTTP_CLIENT_ARCH_ARM       0x0012          /// Arm uefi 32 boot from http
> 
> -#define HTTP_CLIENT_ARCH_AARCH64   0x0013          /// Arm uefi 64 boot from http
> 
> -#define HTTP_CLIENT_ARCH_RISCV32   0x001A          /// RISC-V uefi 32 boot from http
> 
> -#define HTTP_CLIENT_ARCH_RISCV64   0x001C          /// RISC-V uefi 64 boot from http
> 
> -#define HTTP_CLIENT_ARCH_RISCV128  0x001E          /// RISC-V uefi 128 boot from http
> 
> +#define HTTP_CLIENT_ARCH_IA32         0x000F          /// x86 uefi boot from http
> 
> +#define HTTP_CLIENT_ARCH_X64          0x0010          /// x64 uefi boot from http
> 
> +#define HTTP_CLIENT_ARCH_EBC          0x0011          /// EBC boot from http
> 
> +#define HTTP_CLIENT_ARCH_ARM          0x0012          /// Arm uefi 32 boot from http
> 
> +#define HTTP_CLIENT_ARCH_AARCH64      0x0013          /// Arm uefi 64 boot from http
> 
> +#define HTTP_CLIENT_ARCH_RISCV32      0x001A          /// RISC-V uefi 32 boot from http
> 
> +#define HTTP_CLIENT_ARCH_RISCV64      0x001C          /// RISC-V uefi 64 boot from http
> 
> +#define HTTP_CLIENT_ARCH_RISCV128     0x001E          /// RISC-V uefi 128 boot from http
> 
> +#define HTTP_CLIENT_ARCH_LOONGARCH32  0x0026          /// LoongArch uefi 32 boot from http
> 
> +#define HTTP_CLIENT_ARCH_LOONGARCH64  0x0028          /// LoongArch uefi 64 boot from http
> 
> 
> 
>  #endif
> 
> --
> 2.27.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml
  2022-09-14  9:35 ` [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml Chao Li
  2022-09-23  6:56   ` Chao Li
@ 2022-09-23 15:37   ` Michael D Kinney
  1 sibling, 0 replies; 31+ messages in thread
From: Michael D Kinney @ 2022-09-23 15:37 UTC (permalink / raw)
  To: Chao Li, devel@edk2.groups.io, Kinney, Michael D
  Cc: Gao, Liming, Liu, Zhiguang

Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>

> -----Original Message-----
> From: Chao Li <lichao@loongson.cn>
> Sent: Wednesday, September 14, 2022 2:36 AM
> To: devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>
> Subject: [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
> 
> DebugSupport.h is all defined by UEFI Spec, most of the code
> doesn't fit EDKII coding style, add it to IgnoreFiles field to
> make CI ECC check pass.
> 
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> 
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
>  MdePkg/MdePkg.ci.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/MdePkg/MdePkg.ci.yaml b/MdePkg/MdePkg.ci.yaml
> index 054233ebc7..9d141aa3cb 100644
> --- a/MdePkg/MdePkg.ci.yaml
> +++ b/MdePkg/MdePkg.ci.yaml
> @@ -52,6 +52,7 @@
>              "Include/IndustryStandard/UefiTcgPlatform.h",
> 
>              "Include/Library/PcdLib.h",
> 
>              "Include/Library/SafeIntLib.h",
> 
> +            "Include/Protocol/DebugSupport.h",
> 
>              "Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLib.c"
> 
>          ]
> 
>      },
> 
> --
> 2.27.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition to MdePkg.ci.yaml
  2022-09-14  9:35 ` [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition " Chao Li
  2022-09-23  7:00   ` Chao Li
@ 2022-09-23 15:37   ` Michael D Kinney
  1 sibling, 0 replies; 31+ messages in thread
From: Michael D Kinney @ 2022-09-23 15:37 UTC (permalink / raw)
  To: Chao Li, devel@edk2.groups.io, Kinney, Michael D
  Cc: Gao, Liming, Liu, Zhiguang

Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>

> -----Original Message-----
> From: Chao Li <lichao@loongson.cn>
> Sent: Wednesday, September 14, 2022 2:36 AM
> To: devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>
> Subject: [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition to MdePkg.ci.yaml
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
> 
> If the new Arch register is defined in BaseLib.h when running
> the CI tests, it will give an ECC check error. Add the
> LoongArch register defined in the IgnoreFiles field to make
> the CI ECC check pass.
> 
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> 
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
>  MdePkg/MdePkg.ci.yaml | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/MdePkg/MdePkg.ci.yaml b/MdePkg/MdePkg.ci.yaml
> index 9d141aa3cb..19bc0138cb 100644
> --- a/MdePkg/MdePkg.ci.yaml
> +++ b/MdePkg/MdePkg.ci.yaml
> @@ -27,6 +27,18 @@
>              "8005", "void",
> 
>              "8005", "va_list.__ap",
> 
>              "8005", "__stack_chk_guard",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S0",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S1",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S2",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S3",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S4",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S5",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S6",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S7",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.S8",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.SP",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.FP",
> 
> +            "8005", "BASE_LIBRARY_JUMP_BUFFER.RA",
> 
>              "8001", "MSG_IPv6_DP",
> 
>              "8001", "MSG_IPv4_DP",
> 
>              "8001", "DEFAULT_ToS",
> 
> --
> 2.27.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

* 回复: [PATCH v2 04/34] FmpDevicePkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-23  7:03   ` Chao Li
@ 2022-09-26  4:34     ` gaoliming
  0 siblings, 0 replies; 31+ messages in thread
From: gaoliming @ 2022-09-26  4:34 UTC (permalink / raw)
  To: 'chao li', 'Michael D Kinney',
	'Guomin Jiang', 'Wei6 Xu'
  Cc: devel

[-- Attachment #1: Type: text/plain, Size: 2274 bytes --]

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

 

发件人: chao li <lichao@loongson.cn> 
发送时间: 2022年9月23日 15:04
收件人: Liming Gao <gaoliming@byosoft.com.cn>; Michael D Kinney <michael.d.kinney@intel.com>; Guomin Jiang <guomin.jiang@intel.com>; Wei6 Xu <wei6.xu@intel.com>
抄送: devel@edk2.groups.io
主题: Re: [PATCH v2 04/34] FmpDevicePkg: Add LOONGARCH64 architecture for EDK2 CI.

 

Hi Liming, Mike, Guomin and Wei,

This patch has not been reviewed, would you please review it?

 


Thanks,
Chao
--------

On 9月 14 2022, at 5:36 下午, Chao Li <lichao@loongson.cn <mailto:lichao@loongson.cn> > wrote:

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

 

Add LOONGARCH64 architecture for EDK2 CI testing.

 

Cc: Liming Gao <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> >

Cc: Michael D Kinney <michael.d.kinney@intel.com <mailto:michael.d.kinney@intel.com> >

Cc: Guomin Jiang <guomin.jiang@intel.com <mailto:guomin.jiang@intel.com> >

Cc: Wei6 Xu <wei6.xu@intel.com <mailto:wei6.xu@intel.com> >

 

Signed-off-by: Chao Li <lichao@loongson.cn <mailto:lichao@loongson.cn> >

---

FmpDevicePkg/FmpDevicePkg.dsc | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)

 

diff --git a/FmpDevicePkg/FmpDevicePkg.dsc b/FmpDevicePkg/FmpDevicePkg.dsc

index 7b1af285dd..f9f26c54bb 100644

--- a/FmpDevicePkg/FmpDevicePkg.dsc

+++ b/FmpDevicePkg/FmpDevicePkg.dsc

@@ -9,6 +9,7 @@

# Copyright (c) Microsoft Corporation.<BR>

 

# Copyright (c) 2018 - 2021, Intel Corporation. All rights reserved.<BR>

 

# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

 

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

 

#

 

# SPDX-License-Identifier: BSD-2-Clause-Patent

 

#

 

@@ -20,7 +21,7 @@

PLATFORM_VERSION = 0.1

 

DSC_SPECIFICATION = 0x00010005

 

OUTPUT_DIRECTORY = Build/FmpDevicePkg

 

- SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64

 

+ SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64|LOONGARCH64

 

BUILD_TARGETS = DEBUG|RELEASE|NOOPT

 

SKUID_IDENTIFIER = DEFAULT





--

2.27.0


[-- Attachment #2: Type: text/html, Size: 9065 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* 回复: [edk2-devel] [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-23  7:01   ` Chao Li
@ 2022-09-26  6:33     ` gaoliming
  2022-09-26  8:28       ` 回复: edk2-devel] " Chao Li
  0 siblings, 1 reply; 31+ messages in thread
From: gaoliming @ 2022-09-26  6:33 UTC (permalink / raw)
  To: devel, lichao, 'Ray Ni'

[-- Attachment #1: Type: text/plain, Size: 1921 bytes --]

This change is good to me.  Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

 

发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Chao Li
发送时间: 2022年9月23日 15:02
收件人: Ray Ni <ray.ni@intel.com>
抄送: devel@edk2.groups.io
主题: Re: [edk2-devel] [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI.

 

Hi Ray,

This patch has not been reviewed, would you please review it?

 


Thanks,
Chao
--------

On 9月 14 2022, at 5:35 下午, Chao Li <lichao@loongson.cn <mailto:lichao@loongson.cn> > wrote:

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

 

Add LOONGARCH64 architecture for EDK2 CI testing.

 

Cc: Ray Ni <ray.ni@intel.com <mailto:ray.ni@intel.com> >

 

Signed-off-by: Chao Li <lichao@loongson.cn <mailto:lichao@loongson.cn> >

---

FatPkg/FatPkg.dsc | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)

 

diff --git a/FatPkg/FatPkg.dsc b/FatPkg/FatPkg.dsc

index 6fa439e440..076b577972 100644

--- a/FatPkg/FatPkg.dsc

+++ b/FatPkg/FatPkg.dsc

@@ -5,6 +5,7 @@

# for EDK II Prime release.

 

# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>

 

# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>

 

+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>

 

#

 

# SPDX-License-Identifier: BSD-2-Clause-Patent

 

#

 

@@ -15,7 +16,7 @@

PLATFORM_GUID = 25b55dbc-9d0b-4a32-80da-46e1273d622c

 

PLATFORM_VERSION = 0.3

 

DSC_SPECIFICATION = 0x00010005

 

- SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64

 

+ SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64

 

OUTPUT_DIRECTORY = Build/Fat

 

BUILD_TARGETS = DEBUG|RELEASE|NOOPT

 

SKUID_IDENTIFIER = DEFAULT

 

--

2.27.0




[-- Attachment #2: Type: text/html, Size: 8890 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: 回复: edk2-devel] [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI.
  2022-09-26  6:33     ` 回复: [edk2-devel] " gaoliming
@ 2022-09-26  8:28       ` Chao Li
  0 siblings, 0 replies; 31+ messages in thread
From: Chao Li @ 2022-09-26  8:28 UTC (permalink / raw)
  To: "gaoliming"; +Cc: devel@edk2.groups.io, "'Ray Ni'"

[-- Attachment #1: Type: text/plain, Size: 2303 bytes --]

Thank you Liming!

Thanks,
Chao
--------

On 9月 26 2022, at 2:33 下午, "gaoliming" <gaoliming@byosoft.com.cn> wrote:
> This change is good to me. Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
>
>
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Chao Li
> 发送时间: 2022年9月23日 15:02
> 收件人: Ray Ni <ray.ni@intel.com>
> 抄送: devel@edk2.groups.io
> 主题: Re: [edk2-devel] [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI.
>
>
>
>
>
> Hi Ray,
> This patch has not been reviewed, would you please review it?
>
>
>
>
> Thanks,
> Chao
> --------
>
>
> On 9月 14 2022, at 5:35 下午, Chao Li <lichao@loongson.cn (mailto:lichao@loongson.cn)> wrote:
>
> > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
> >
> >
> >
> > Add LOONGARCH64 architecture for EDK2 CI testing.
> >
> >
> > Cc: Ray Ni <ray.ni@intel.com (mailto:ray.ni@intel.com)>
> >
> >
> > Signed-off-by: Chao Li <lichao@loongson.cn (mailto:lichao@loongson.cn)>
> > ---
> >
> > FatPkg/FatPkg.dsc | 3 ++-
> >
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> >
> >
> > diff --git a/FatPkg/FatPkg.dsc b/FatPkg/FatPkg.dsc
> > index 6fa439e440..076b577972 100644
> >
> > --- a/FatPkg/FatPkg.dsc
> >
> > +++ b/FatPkg/FatPkg.dsc
> >
> > @@ -5,6 +5,7 @@
> >
> > # for EDK II Prime release.
> >
> >
> >
> > # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
> >
> >
> > # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> >
> >
> > +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> >
> >
> > #
> >
> >
> > # SPDX-License-Identifier: BSD-2-Clause-Patent
> >
> >
> > #
> >
> >
> > @@ -15,7 +16,7 @@
> > PLATFORM_GUID = 25b55dbc-9d0b-4a32-80da-46e1273d622c
> >
> >
> >
> > PLATFORM_VERSION = 0.3
> >
> >
> > DSC_SPECIFICATION = 0x00010005
> >
> >
> > - SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64
> >
> >
> > + SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
> >
> >
> > OUTPUT_DIRECTORY = Build/Fat
> >
> >
> > BUILD_TARGETS = DEBUG|RELEASE|NOOPT
> >
> >
> > SKUID_IDENTIFIER = DEFAULT
> >
> >
> > --
> > 2.27.0
> >
> >
>
>
> 

[-- Attachment #2: Type: text/html, Size: 6273 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2022-09-26  8:28 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-14  9:35 [PATCH v2 00/34] Add a new architecture called LoongArch in EDK II Chao Li
2022-09-14  9:35 ` [PATCH v2 01/34] MdePkg: Added file of DebugSupport.h to MdePkg.ci.yaml Chao Li
2022-09-23  6:56   ` Chao Li
2022-09-23 15:37   ` Michael D Kinney
2022-09-14  9:35 ` [PATCH v2 02/34] MdePkg: Added LoongArch jump buffer register definition " Chao Li
2022-09-23  7:00   ` Chao Li
2022-09-23 15:37   ` Michael D Kinney
2022-09-14  9:35 ` [PATCH v2 03/34] FatPkg: Add LOONGARCH64 architecture for EDK2 CI Chao Li
2022-09-23  7:01   ` Chao Li
2022-09-26  6:33     ` 回复: [edk2-devel] " gaoliming
2022-09-26  8:28       ` 回复: edk2-devel] " Chao Li
2022-09-14  9:36 ` [PATCH v2 04/34] FmpDevicePkg: " Chao Li
2022-09-23  7:03   ` Chao Li
2022-09-26  4:34     ` 回复: " gaoliming
2022-09-14  9:36 ` [PATCH v2 05/34] NetworkPkg: " Chao Li
2022-09-23  7:06   ` Chao Li
2022-09-14  9:36 ` [PATCH v2 06/34] NetworkPkg/HttpBootDxe: " Chao Li
2022-09-23  7:07   ` Chao Li
2022-09-23  8:05   ` Wu, Jiaxin
2022-09-14  9:36 ` [PATCH v2 07/34] CryptoPkg: " Chao Li
2022-09-23  7:09   ` Chao Li
2022-09-23  7:14     ` [edk2-devel] " Yao, Jiewen
2022-09-14  9:36 ` [PATCH v2 08/34] MdePkg/Include: Add LOONGARCH related definitions " Chao Li
2022-09-23  6:22   ` Chao Li
2022-09-23 15:37   ` Michael D Kinney
2022-09-14  9:36 ` [PATCH v2 09/34] SecurityPkg: Add LOONGARCH64 architecture for " Chao Li
2022-09-23  7:10   ` Chao Li
2022-09-23  7:14     ` Yao, Jiewen
2022-09-14  9:36 ` [PATCH v2 10/34] ShellPkg: " Chao Li
2022-09-15  8:56   ` Gao, Zhichao
2022-09-15 11:27     ` [edk2-devel] " Chao Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox