diff options
author | Alexey Dobriyan <[email protected]> | 2018-01-13 21:50:48 +0300 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-02-13 17:36:49 +0100 |
commit | 1acdbf7ea8a80706561013346d281d282a3c00f9 (patch) | |
tree | f74d3200b821ff3ca80513078239c3f11193391b | |
parent | 178e834c47b0d01352c48730235aae69898fbc02 (diff) |
x86/asm: Clobber flags in clear_page()
All clear_page() implementations use XOR which resets flags.
Judging by allyesconfig disassembly no code is affected.
Signed-off-by: Alexey Dobriyan <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/20180113185048.GA23111@avx2
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | arch/x86/include/asm/page_64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/page_64.h b/arch/x86/include/asm/page_64.h index 4baa6bceb232..f8a85c65f150 100644 --- a/arch/x86/include/asm/page_64.h +++ b/arch/x86/include/asm/page_64.h @@ -47,7 +47,7 @@ static inline void clear_page(void *page) clear_page_erms, X86_FEATURE_ERMS, "=D" (page), "0" (page) - : "memory", "rax", "rcx"); + : "cc", "memory", "rax", "rcx"); } void copy_page(void *to, void *from); |