mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
risc-v/litex: Implement up_flush_dcache_all when CONFIG_ARCH_DCACHE is defined.
This duplicates the up_invalidate_dcache_all as vexriscv's DBUS cache does not distinguish between flushing and invalidation. Signed-off-by: Justin Erenkrantz <justin@erenkrantz.com>
This commit is contained in:
committed by
Alan C. Assis
parent
8896242b9d
commit
f10cf58d6b
@@ -56,6 +56,28 @@ up_invalidate_dcache_all:
|
||||
.word 0x500F
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_flush_dcache_all
|
||||
*
|
||||
* Description:
|
||||
* Flush the entire contents of D cache.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_DCACHE
|
||||
.globl up_flush_dcache_all
|
||||
.type up_flush_dcache_all, function
|
||||
|
||||
up_flush_dcache_all:
|
||||
.word 0x500F
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_invalidate_icache_all
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user