mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
3c66390e4a
commit
286b30f517
|
@ -206,6 +206,26 @@ RiscVClearPendingTimerInterrupt (
|
|||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
RISC-V invalidate instruction cache.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
RiscVInvalidateInstCacheAsm (
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
RISC-V invalidate data cache.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
RiscVInvalidateDataCacheAsm (
|
||||
VOID
|
||||
);
|
||||
|
||||
#endif // defined (MDE_CPU_RISCV64)
|
||||
|
||||
#if defined (MDE_CPU_LOONGARCH64)
|
||||
|
|
|
@ -10,26 +10,6 @@
|
|||
#include <Library/BaseLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
|
||||
/**
|
||||
RISC-V invalidate instruction cache.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
RiscVInvalidateInstCacheAsm (
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
RISC-V invalidate data cache.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
RiscVInvalidateDataCacheAsm (
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Invalidates the entire instruction cache in cache coherency domain of the
|
||||
calling CPU.
|
||||
|
|
Loading…
Reference in New Issue