Skip to content
Commit a6800cef authored by Dong Wang's avatar Dong Wang Committed by Christopher Friedt
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 3a6952e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment