[edk2-devel] [PATCH V4 2/3] MdeModulePkg/TerminalDxe: Extend the terminal console support types

2019-09-22 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2186 Extend the support types of terminal console driver. New added types are Linux, XtermR6, VT400 and SCO. Refer to https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter4.html#config-funkeys Add the missing VT100+ function keys map. Add

[edk2-devel] [PATCH V4 0/3] MdeModulePkg/TerminalConsole: Extend the support terminal types

2019-09-22 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2186 Putty is a very popular terminal tool in windows. So add the whole support terminal keyboard type for it. The new introduced type is Linux, XtermR6, VT400 and SCO. And enhance the support for VT100+. This patch set only add the support of

[edk2-devel] [PATCH V4 3/3] MdeModulePkg/BM_UI: Add the new terminal types to related menu

2019-09-22 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2186 Add the new introduced terminal types to related setup menu to change the terminal type from setup. Most platforms would have its own configure setup menu and they need to change it to support these. The new introduced terminal types are

[edk2-devel] [PATCH V4 1/3] MdeModulePkg: Extend the support keyboard type of Terminal console

2019-09-22 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2186 A common terminal console software Putty support various types of keyboard type, such as normal mode, Linux mode, Xterm R6, Vt400, VT100+ and SCO. Refer to the link:

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 11/13] U500Pkg/SerialIoLib: Add copyrights

2019-09-22 Thread Abner Chang
Add HPE copyrights. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Platform/RiscV/SiFive/U500Pkg/Library/SerialIoLib/SerialPortLib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/RiscV/SiFive/U500Pkg/Library/SerialIoLib/SerialPortLib.c

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 05/13] U500Pkg: Update DEC revision

2019-09-22 Thread Abner Chang
Change DEC revision. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Platform/RiscV/SiFive/U500Pkg/U500.dec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/RiscV/SiFive/U500Pkg/U500.dec b/Platform/RiscV/SiFive/U500Pkg/U500.dec index

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 07/13] Silicon/SiFive: Update INF revision

2019-09-22 Thread Abner Chang
Update INF revision. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Silicon/SiFive/E51/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 2 +- Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 2 +-

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 01/13] U500Pkg/OpenSbiPlatformLib: Use Fdtlib in EmbeddedPkg

2019-09-22 Thread Abner Chang
Use Fdtlib in EmbeddedPkg instead of using OpenSbi one. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- .../OpenSbiPlatformLib/OpenSbiPlatformLib.inf | 8 +- .../U500Pkg/Library/OpenSbiPlatformLib/platform.c | 242 +++-- 2 files changed, 127

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 09/13] U500Pkg/riscVPlatformTimerLib: Change source code to *.S

2019-09-22 Thread Abner Chang
Change *s to *.S. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- .../U500Pkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.inf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 13/13] U500Pkg: Leverage EmbeddedPkg modules

2019-09-22 Thread Abner Chang
Use Fdtlib and RealTimeClockDxe from EmbeddedPkg. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Platform/RiscV/SiFive/U500Pkg/U500.dsc | 5 +++-- Platform/RiscV/SiFive/U500Pkg/U500.fdf | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 03/13] U500Pkg/Sec: Add information to header file references

2019-09-22 Thread Abner Chang
Add more information to header file references. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Platform/RiscV/Universal/Sec/SecMain.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Platform/RiscV/Universal/Sec/SecMain.c

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 12/13] RiscV: Update DEC revision

2019-09-22 Thread Abner Chang
Update DEC revision. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Platform/RiscV/RiscVPlatformPkg.dec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/RiscV/RiscVPlatformPkg.dec b/Platform/RiscV/RiscVPlatformPkg.dec index 3ce16bf..5b8c157

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 00/13] Updates to sync-up with

2019-09-22 Thread Abner Chang
This set of patches is updated to incorporate with patches sent for edk2-staging/RISC-V-V2 PATCH v2. Abner Chang (13): U500Pkg/OpenSbiPlatformLib: Use Fdtlib in EmbeddedPkg U500Pkg/Sec: Remove unnecessary PCD reference U500Pkg/Sec: Add information to header file references

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 06/13] RiscV :Update INF revision

2019-09-22 Thread Abner Chang
Update INF revision. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- .../FirmwareContextProcessorSpecificLib.inf | 2 +- Platform/RiscV/Library/RealTimeClockLibNull/RealTimeClockLibNull.inf| 2 +-

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 08/13] Silicon/SiFive :Update DEC revision

2019-09-22 Thread Abner Chang
Update DEC revision. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Silicon/SiFive/SiFive.dec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/SiFive/SiFive.dec b/Silicon/SiFive/SiFive.dec index 7aca3e7..d76458f 100644 ---

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 10/13] RiscV/Sec: Change source code to *.S

2019-09-22 Thread Abner Chang
Change *s to *.S. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Platform/RiscV/Universal/Sec/SecMain.inf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Platform/RiscV/Universal/Sec/SecMain.inf b/Platform/RiscV/Universal/Sec/SecMain.inf index

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 04/13] U500Pkg/SerialIoLib: Header file reference change

2019-09-22 Thread Abner Chang
Change header file reference. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Platform/RiscV/SiFive/U500Pkg/Library/SerialIoLib/SerialPortLib.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[edk2-devel] [platforms/devel-riscv-v2 PATCHv3 02/13] U500Pkg/Sec: Remove unnecessary PCD reference

2019-09-22 Thread Abner Chang
Remove unnecessary PCD reference. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- Platform/RiscV/Universal/Sec/SecMain.inf | 3 --- 1 file changed, 3 deletions(-) diff --git a/Platform/RiscV/Universal/Sec/SecMain.inf b/Platform/RiscV/Universal/Sec/SecMain.inf index

Re: [edk2-devel] [PATCH V3 2/3] MdeModulePkg/TerminalDxe: Extend the terminal console support types

2019-09-22 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Gao, Zhichao > Sent: Tuesday, September 17, 2019 10:34 PM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Wu, Hao A ; Ni, > Ray ; Gao, Liming > > Subject: [PATCH V3 2/3] MdeModulePkg/TerminalDxe: Extend the terminal console > support

Re: [edk2-devel] [PATCH 34/35] UefiPayloadPkg/BlSupportPei: fix MMCONFIG assignment from XSDT

2019-09-22 Thread Guo Dong
It looks good to me. Reviewed-by: Guo Dong > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Tuesday, September 17, 2019 12:50 PM > To: edk2-devel-groups-io > Cc: You, Benjamin ; Dong, Guo > ; Ma, Maurice > Subject: [PATCH 34/35]

Re: [edk2-devel] [PATCH 35/35] UefiPayloadPkg/BlSupportDxe: fix ReserveResourceInGcd() calls

2019-09-22 Thread Guo Dong
Thanks for the fix. Reviewed-by: Guo Dong > -Original Message- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Laszlo Ersek > Sent: Tuesday, September 17, 2019 12:50 PM > To: edk2-devel-groups-io > Cc: You, Benjamin ; Dong, Guo > ; Ma, Maurice > Subject:

[edk2-devel] [edk2-test][Patch] uefi-sct/SctPkg: Add MediaPresentSupported check

2019-09-22 Thread xianhui liu
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2061 check MediaPresent while MediaPresentSupported is TRUE Cc: Heinrich Schuchardt Cc: Supreeth Venkatesh Cc: Eric Jin Signed-off-by: xianhui liu --- .../BlackBoxTest/SimpleNetworkBBTestFunction.c | 64 +++--- 1 file

Re: [edk2-devel] [edk2-platforms][PATCH V1 1/1] AdvancedFeaturePkg/Ipmi: Fix X64 GCC Build Failures

2019-09-22 Thread Dandan Bi
Reviewed-by: Dandan Bi Thanks, Dandan > -Original Message- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Kubacki, Michael A > Sent: Friday, September 20, 2019 1:54 AM > To: devel@edk2.groups.io > Cc: Bi, Dandan ; Chaganty, Rangasai V > ; Gao, Liming >

Re: [edk2-devel] [PATCH 00/22] RISC-V EDK2 Port on edk2-staging/RISC-V-V2 branch

2019-09-22 Thread Abner Chang
Hi Leif, I just sent the whole a set of patches in which most of comments are addressed. However, I forget to add CC before sending those out... the weekend breaks my memory. Let me know if I have to resend those with certain people CCed. Or we have some ways to work it around. Thanks Abner >

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 12/29] MdePkg/BaseSynchronizationLib: RISC-V cache related code.

2019-09-22 Thread Abner Chang
Support RISC-V cache related functions. Signed-off-by: Abner Chang --- .../BaseSynchronizationLib.inf | 6 + .../RiscV64/Synchronization.c | 183 + .../RiscV64/SynchronizationAsm.S | 78 + 3 files changed,

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 22/29] RiscVPkg/RiscVPlatformTempMemoryInit: RISC-V Platform Temporary Memory library

2019-09-22 Thread Abner Chang
NULL instance of RISC-V Platform Temporary Memory library. Signed-off-by: Abner Chang --- .../Library/RiscVPlatformTempMemoryInitLib.h | 17 +++ .../RiscVPlatformTempMemoryInitLibNull.inf | 34 ++ .../Riscv64/TempMemInit.S | 26

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 26/29] RiscVPkg/SmbiosDxe: Generic SMBIOS DXE driver for RISC-V platforms.

2019-09-22 Thread Abner Chang
RISC-V generic SMBIOS DXE driver for building up SMBIOS type 4, type 7 and type 44 records. Signed-off-by: Abner Chang --- RiscVPkg/Include/ProcessorSpecificDataHob.h| 95 ++ RiscVPkg/Include/SmbiosProcessorSpecificData.h | 58 RiscVPkg/RiscVPkg.dec

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 28/29] edk2-staging/RISC-V-V2: Add ReadMe

2019-09-22 Thread Abner Chang
Add RiscVEdk2Readme.md Signed-off-by: Abner Chang --- RiscVEdk2Readme.md | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 RiscVEdk2Readme.md diff --git a/RiscVEdk2Readme.md b/RiscVEdk2Readme.md new file mode 100644 index 000..ec691fe ---

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 16/29] RiscVPkg/Library: Add RISC-V exception library

2019-09-22 Thread Abner Chang
Initial RISC-V Supervisor Mode trap handler Signed-off-by: Abner Chang --- .../RiscVExceptionLib/CpuExceptionHandler.S| 88 ++ .../CpuExceptionHandlerDxeLib.inf | 42 + .../RiscVExceptionLib/CpuExceptionHandlerLib.c | 182 +

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 24/29] BaseTools: BaseTools changes for RISC-V platform.

2019-09-22 Thread Abner Chang
BaseTools changes for building EDK2 RISC-V platform. The changes made to build_rule.template is to avoid build errors cause by GCC711RISCV tool chain. Signed-off-by: Abner Chang --- BaseTools/Conf/build_rule.template | 62 ++--- BaseTools/Conf/tools_def.template

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 14/29] NetworkPkg

2019-09-22 Thread Abner Chang
Add RISCV64 Arch. Signed-off-by: Abner Chang --- NetworkPkg/Network.dsc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPkg/Network.dsc.inc b/NetworkPkg/Network.dsc.inc index c7f4328..b484f9b 100644 --- a/NetworkPkg/Network.dsc.inc +++ b/NetworkPkg/Network.dsc.inc

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 20/29] MdeModulePkg/DxeIplPeim : RISC-V platform level DxeIPL

2019-09-22 Thread Abner Chang
Implementation of RISC-V platform level DxeIPL Signed-off-by: Abner Chang --- MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf| 13 +++- MdeModulePkg/Core/DxeIplPeim/RiscV64/DxeLoadFunc.c | 71 ++ RiscVPkg/Include/Library/RiscVPlatformDxeIpl.h | 41 + 3

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 18/29] RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library.

2019-09-22 Thread Abner Chang
EDK2 RISC-V OpenSBI library which pull in external source files under RiscVPkg/opensbi to the build process. Signed-off-by: Abner Chang --- .../Library/RiscVOpensbiLib/RiscVOpensbiLib.inf| 52 ++ 1 file changed, 52 insertions(+) create mode 100644

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 19/29] RiscVPkg/Library: RISC-V platform level DxeIPL libraries.

2019-09-22 Thread Abner Chang
RiscVDxeIplHandoffLib.inf: Simply use stack switch to hand off to DXE phase. RiscVDxeIplHandoffOpenSbiLib.inf: Hand off to DXE phase using OpenSBI interface. Signed-off-by: Abner Chang --- .../RiscVDxeIplHandoffLib/RiscVDxeIplHandoffLib.c | 41 + .../RiscVDxeIplHandoffLib.inf

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 25/29] BaseTools/Scripts

2019-09-22 Thread Abner Chang
Add RISC-V specific LD scripts. ."rela(INFO)" in the latest GccBase.lds causes PE32 relocation error. This is the temporaty solution untill we find the root casue. Signed-off-by: Abner Chang --- BaseTools/Scripts/GccBaseRiscV.lds | 66 ++ 1 file changed, 66

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 21/29] RiscVPkg/PeiServicesTablePointerLibOpenSbi: RISC-V PEI Service Table Pointer library

2019-09-22 Thread Abner Chang
Implementation of RISC-V PEI Service Table Pointer library using RISC-V OpenSbi. Signed-off-by: Abner Chang --- .../PeiServicesTablePointerLibOpenSbi.inf | 38 +++ .../PeiServicesTablePointerLibOpenSbi.uni | 23 .../PeiServicesTablePointerOpenSbi.c |

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 29/29] edk2-staging: Update Maintainers.txt

2019-09-22 Thread Abner Chang
Add maintainer and reviewer of RiscVPkg. Signed-off-by: Abner Chang --- Maintainers.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Maintainers.txt b/Maintainers.txt index 919bacc..11449a5 100644 --- a/Maintainers.txt +++ b/Maintainers.txt @@ -408,6 +408,11 @@ F: PcAtChipsetPkg/

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 15/29] RiscVPkg/Library: RISC-V CPU library

2019-09-22 Thread Abner Chang
This library provides CSR assembly functions to read/write RISC-V specific Control and Status registers. Signed-off-by: Abner Chang --- RiscVPkg/Include/Library/RiscVCpuLib.h | 68 RiscVPkg/Library/RiscVCpuLib/Cpu.S | 115 +++

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 17/29] RiscVPkg/Library: Add RISC-V timer library

2019-09-22 Thread Abner Chang
Timer library for RISC-V Signed-off-by: Abner Chang --- .../Library/RiscVTimerLib/BaseRiscVTimerLib.inf| 34 RiscVPkg/Library/RiscVTimerLib/RiscVTimerLib.c | 195 + RiscVPkg/Library/RiscVTimerLib/RiscVTimerLib.h | 21 +++ RiscVPkg/RiscVPkg.dec

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 27/29] edk2-staging/RISC-V-V2: Add submodule

2019-09-22 Thread Abner Chang
Add submodule opensbi under RiscVPkg. The current supported opensbi version for RISC-V edk2 port is commit ID:ce228ee (tags/v0.4). Signed-off-by: Abner Chang --- .gitmodules | 16 ++-- RiscVPkg/opensbi | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) create mode

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 23/29] RiscVPkg/CpuDxe: Add RISC-V CPU DXE driver.

2019-09-22 Thread Abner Chang
The driver produces RISC-V EFI_CPU_ARCH_PROTOCOL and use RISC-V platform level timer library. Due to RISC-V timer CSR is platform implementation specific, RISC-V CPU DXE driver invokes platform level timer library to access to timer CSRs. Signed-off-by: Abner Chang ---

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 11/29] MdePkg/BaseCpuLib: RISC-V Base CPU library implementation.

2019-09-22 Thread Abner Chang
Implement RISC-V CPU related functions in BaseCpuLib. Signed-off-by: Abner Chang --- MdePkg/Library/BaseCpuLib/BaseCpuLib.inf | 6 +- MdePkg/Library/BaseCpuLib/BaseCpuLib.uni | 5 +++-- MdePkg/Library/BaseCpuLib/RiscV/Cpu.S| 19 +++ 3 files changed, 27 insertions(+), 3

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 13/29] MdeModulePkg/Logo

2019-09-22 Thread Abner Chang
Add RISCV64 Arch. Signed-off-by: Abner Chang --- MdeModulePkg/Logo/Logo.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Logo/Logo.inf b/MdeModulePkg/Logo/Logo.inf index 0182025..243748c 100644 --- a/MdeModulePkg/Logo/Logo.inf +++ b/MdeModulePkg/Logo/Logo.inf

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 09/29] MdePkg/BaseIoLibIntrinsic: RISC-V I/O intrinsic functions.

2019-09-22 Thread Abner Chang
RISC-V MMIO library instance. RISC-V only supports memory map I/O. Signed-off-by: Abner Chang --- .../BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf | 8 +- MdePkg/Library/BaseIoLibIntrinsic/IoLibRiscV.c | 601 + 2 files changed, 607 insertions(+), 2 deletions(-)

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 07/29] MdePkg/BaseLib: BaseLib for RISC-V RV64 Processor.

2019-09-22 Thread Abner Chang
Add RISC-V RV64 BaseLib functions. Signed-off-by: Abner Chang --- MdePkg/Include/Library/BaseLib.h | 26 ++ MdePkg/Library/BaseLib/BaseLib.inf | 18 +- MdePkg/Library/BaseLib/RiscV64/CpuBreakpoint.c | 27 +++ MdePkg/Library/BaseLib/RiscV64/CpuPause.c

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 08/29] MdePkg/BaseCacheMaintenanceLib: RISC-V cache maintenance implementation.

2019-09-22 Thread Abner Chang
Implement RISC-V cache maintenance functions in BaseCacheMaintenanceLib. Signed-off-by: Abner Chang --- .../BaseCacheMaintenanceLib.inf| 4 + .../Library/BaseCacheMaintenanceLib/RiscVCache.c | 250 + 2 files changed, 254 insertions(+) create mode

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 10/29] MdePkg/BasePeCoff: Add RISC-V PE/Coff related code.

2019-09-22 Thread Abner Chang
Support RISC-V image relocation. Signed-off-by: Abner Chang --- MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 3 +- MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf | 5 + MdePkg/Library/BasePeCoffLib/BasePeCoffLib.uni | 2 + .../Library/BasePeCoffLib/BasePeCoffLibInternals.h

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 06/29] MdeModulePkg/CapsuleRuntimeDxe: Add RISCV64 arch.

2019-09-22 Thread Abner Chang
Add RISC-V in INF for building CapsuleRuntimeDxe RISCV64 image. Signed-off-by: Abner Chang --- MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 02/29] RiscVPkg/Include: Add header files of RISC-V CPU package

2019-09-22 Thread Abner Chang
RISC-V package library definitions. IndustryStandard/RiscV.h -Add RiscV.h which conform with RISC-V Privilege Spec v1.10. RiscV.h -Definition of EDK2 RISC-V implementation. Signed-off-by: Abner Chang --- RiscVPkg/Include/IndustryStandard/RiscV.h | 102 ++

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 04/29] MdePkg: RISC-V RV64 binding in MdePkg

2019-09-22 Thread Abner Chang
Add RISCV64 sections in MdePkg.dec and RISCV64 ProcessorBind.h Signed-off-by: Abner Chang --- MdePkg/Include/RiscV64/ProcessorBind.h | 173 + MdePkg/MdePkg.dec | 5 +- 2 files changed, 177 insertions(+), 1 deletion(-) create mode 100644

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 05/29] MdePkg/Include: RISC-V definitions.

2019-09-22 Thread Abner Chang
Add RISC-V processor related definitions. Signed-off-by: Abner Chang --- MdePkg/Include/IndustryStandard/PeImage.h | 12 +++ MdePkg/Include/Protocol/DebugSupport.h| 55 +++ MdePkg/Include/Protocol/PxeBaseCode.h | 4 +++ MdePkg/Include/Uefi/UefiBaseType.h

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 00/29] RISC-V EDK2 Port on

2019-09-22 Thread Abner Chang
This branch "RISC-V-V2" is used to contribute RISC-V architecture on EDK2. Compare to the old branch "RISC-V", this branch "RISC-V-V2" is created based on the most recent edk2/master @37eef910. This is easier for reviewers to have clear ideas of edk2 code changes for RISC-V EDK2 implementation.

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 08/29] MdePkg/BaseCacheMaintenanceLib: RISC-V cache maintenance implementation.

2019-09-22 Thread Abner Chang
Implement RISC-V cache maintenance functions in BaseCacheMaintenanceLib. Signed-off-by: Abner Chang --- .../BaseCacheMaintenanceLib.inf| 4 + .../Library/BaseCacheMaintenanceLib/RiscVCache.c | 250 + 2 files changed, 254 insertions(+) create mode

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 03/29] RiscVPkg/opensbi: EDK2 RISC-V OpenSBI support

2019-09-22 Thread Abner Chang
Add EDK2 RISC-V OpenSBI header files and opensbi-HOWTO.txt for users to build RISC-V platform with RISC-V OpenSBI library. Signed-off-by: Abner Chang --- RiscVPkg/Include/sbi/SbiFirmwareContext.h | 38 RiscVPkg/Include/sbi/sbi.h| 96 +++

[edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 01/29] RiscVPkg: RISC-V processor package.

2019-09-22 Thread Abner Chang
- Add RiscVPkg package which provides RISC-V processor related drivers and libraries. - Support RISC-V OpenSBI and RISC-V platforms Signed-off-by: Abner Chang --- RiscVPkg/RiscVPkg.dec | 27 +++ RiscVPkg/RiscVPkg.uni | 13 +

Re: [edk2-devel] [edk2-platforms][PATCH V1 12/12] Add GalagoPro3 board details to global build and documentation

2019-09-22 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: devel@edk2.groups.io On Behalf Of Kubacki, > Michael A > Sent: Saturday, September 21, 2019 2:41 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > ; Sinha, Ankit ; > Jeremy Soller > Subject: [edk2-devel]

Re: [edk2-devel] [edk2-platforms][PATCH V1 03/12] ClevoOpenBoardPkg: Remove global files and references

2019-09-22 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: devel@edk2.groups.io On Behalf Of Kubacki, > Michael A > Sent: Saturday, September 21, 2019 2:40 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > ; Sinha, Ankit ; > Jeremy Soller > Subject: [edk2-devel]