tests: arch arm: runtime nmi testing with dcache for ARM V7
For ARMV7 devices, use preferably the sys_cache_data_flush_all function to flush the data cache Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
99aa65c725
commit
9023c27913
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <zephyr/arch/arm/nmi.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/tc_util.h>
|
||||
#include <zephyr/cache.h>
|
||||
|
||||
/* on v8m arch the nmi pend bit is renamed to pend nmi map it to old name */
|
||||
#ifndef SCB_ICSR_NMIPENDSET_Msk
|
||||
|
@ -67,7 +68,7 @@ ZTEST(arm_runtime_nmi_fn, test_arm_runtime_nmi)
|
|||
#ifdef ARM_CACHEL1_ARMV7_H
|
||||
/* Flush Data Cache now if enabled */
|
||||
if (IS_ENABLED(CONFIG_DCACHE)) {
|
||||
SCB_CleanDCache();
|
||||
sys_cache_data_flush_all();
|
||||
}
|
||||
#endif /* ARM_CACHEL1_ARMV7_H */
|
||||
zassert_true(nmi_triggered, "Isr not triggered!\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue