commit | a6800cefb1d6bd23366ecfff35bd12112e5d6b6e | [log] [tgz] |
---|---|---|
author | Dong Wang <dong.d.wang@intel.com> | Sun Jul 18 12:41:29 2021 +0800 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Fri Jul 23 16:22:07 2021 -0400 |
tree | c2c2bf26e2a3aa8f330bcc6140f3df241d0f623f | |
parent | 3a6952e3e6cbbf3ad57f4392c707c311bb999125 [diff] |
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: Dong Wang <dong.d.wang@intel.com>