mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86: restore semicolon after explicit DS prefix
It's not unnecessary (as the earlier commit claimed): The integrated
assembler of Clang up to 11 complains about an "invalid operand for
instruction".
Fixes: b42cf31d11 ("x86: use alternative_input() in cache_flush()")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
439f3e6757
commit
4dec51ca72
1 file changed
+1
-1
@@ -286,7 +286,7 @@ void cache_flush(const void *addr, unsigned int size)
|
||||
* + prefix than a clflush + nop, and hence the prefix is added instead
|
||||
* of letting the alternative framework fill the gap by appending nops.
|
||||
*/
|
||||
alternative_input("ds clflush %[p]",
|
||||
alternative_input("ds; clflush %[p]",/* Semicolon for Clang-IAS < 12 */
|
||||
"data16 clflush %[p]", /* clflushopt */
|
||||
X86_FEATURE_CLFLUSHOPT,
|
||||
[p] "m" (*(const char *)(addr)));
|
||||
|
||||