Skip to content
Commit 0afddb23 authored by Dong Wang's avatar Dong Wang Committed by Anas Nashif
Browse files

x86/cache: fix issues in arch dcache flush function



Correct the wrong operand of clflush instruction. The old operand
points to a location inside stack and doesn't work. The new one
works well by taking linux kernel code as reference.

End address instead of size should get round up

Add Kconfig option to disable the usage of mfence intruction for
SoC that has clfulsh but no mfence supported.

Signed-off-by: default avatarDong Wang <dong.d.wang@intel.com>
parent 9bcf9b6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment