Dhaval Sharma
904b002c50
MdePkg: Utilize Cache Management Operations Implementation For RISC-V
...
Use newly defined cache management operations for RISC-V where possible
It builds up on the support added for RISC-V cache management
instructions in BaseLib.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Pedro Falcato <pedro.falcato@gmail.com >
Signed-off-by: Dhaval Sharma <dhaval@rivosinc.com >
Acked-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Pedro Falcato <pedro.falcato@gmail.com >
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com >
2023-12-19 12:48:14 +00:00
Dhaval
30faafd024
MdePkg: Rename Cache Management Function To Clarify Fence Based Op
...
There are different ways to manage cache on RISC-V Processors.
One way is to use fence instruction. Another way is to use CPU
specific cache management operation instructions ratified as
per RISC-V ISA specifications to be introduced in future
patches. Current method is fence instruction based, rename the
function accordingly to add that clarity.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Sunil V L <sunilvl@ventanamicro.com >
Cc: Daniel Schaefer <git@danielschaefer.me >
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Pedro Falcato <pedro.falcato@gmail.com >
Signed-off-by: Dhaval Sharma <dhaval@rivosinc.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
2023-12-19 12:48:14 +00:00
Dhaval Sharma
286b30f517
MdePkg: Move RISC-V Cache Management Declarations Into BaseLib
...
The declarations for cache Management functions belong to BaseLib
instead of instance source file. This helps with further restructuring
of cache management code for RISC-V.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Pedro Falcato <pedro.falcato@gmail.com >
Signed-off-by: Dhaval Sharma <dhaval@rivosinc.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
2023-12-19 12:48:14 +00:00
Rebecca Cran
b17a3a133b
MdePkg: Update code to be more C11 compliant by using __func__
...
__FUNCTION__ is a pre-standard extension that gcc and Visual C++ among
others support, while __func__ was standardized in C99.
Since it's more standard, replace __FUNCTION__ with __func__ throughout
MdePkg.
Visual Studio versions before VS 2015 don't support __func__ and so
will fail to compile. A workaround is to define __func__ as
__FUNCTION__ :
#define __func__ __FUNCTION__
Signed-off-by: Rebecca Cran <rebecca@quicinc.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com >
2023-03-17 17:55:48 +00:00
Tuan Phan
997c6967b0
MdePkg/BaseCacheMaintenanceLib: RISC-V: Fix InvalidateInstructionCacheRange
...
When the range instruction cache invalidating not supported, the whole
instruction cache should be invalidated instead.
Signed-off-by: Tuan Phan <tphan@ventanamicro.com >
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com >
2023-03-16 15:47:40 +00:00
Michael Kubacki
2f88bd3a12
MdePkg: Apply uncrustify changes
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the MdePkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2021-12-07 17:24:28 +00:00
Abner Chang
38e72aa877
MdePkg/BaseCacheMaintenanceLib:
...
RISC-V cache maintenance implementation.
Implement RISC-V cache maintenance functions in
BaseCacheMaintenanceLib.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2672
Signed-off-by: Abner Chang <abner.chang@hpe.com >
Co-authored-by: Gilbert Chen <gilbert.chen@hpe.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Gilbert Chen <gilbert.chen@hpe.com >
2020-05-07 03:17:15 +00:00