hv: cache: wrap common APIs

Wrap three common Cache APIs:
- flush_invalidate_all_cache
- flush_cacheline
- flush_cache_range

Tracked-On: #5830
Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
Li Fei1
2021-04-23 15:49:53 +08:00
committed by wenlingz
parent 77e64f6092
commit 30febed0e1
9 changed files with 34 additions and 40 deletions

View File

@@ -255,7 +255,7 @@ void dump_exception(struct intr_excp_ctx *ctx, uint16_t pcpu_id)
/* Save registers*/
crash_ctx = ctx;
cache_flush_invalidate_all();
flush_invalidate_all_cache();
/* Release lock to let other CPUs handle exception */
spinlock_release(&exception_spinlock);