[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-1acdbf7ea8a80706561013346d281d282a3c00f9@git.kernel.org>
Date: Tue, 13 Feb 2018 08:59:31 -0800
From: tip-bot for Alexey Dobriyan <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: mingo@...nel.org, peterz@...radead.org, adobriyan@...il.com,
hpa@...or.com, linux-kernel@...r.kernel.org, tglx@...utronix.de,
bp@...e.de, torvalds@...ux-foundation.org
Subject: [tip:x86/asm] x86/asm: Clobber flags in clear_page()
Commit-ID: 1acdbf7ea8a80706561013346d281d282a3c00f9
Gitweb: https://git.kernel.org/tip/1acdbf7ea8a80706561013346d281d282a3c00f9
Author: Alexey Dobriyan <adobriyan@...il.com>
AuthorDate: Sat, 13 Jan 2018 21:50:48 +0300
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Tue, 13 Feb 2018 17:36:49 +0100
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 <adobriyan@...il.com>
Reviewed-by: Borislav Petkov <bp@...e.de>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/20180113185048.GA23111@avx2
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/x86/include/asm/page_64.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/page_64.h b/arch/x86/include/asm/page_64.h
index 4baa6bc..f8a85c6 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);
Powered by blists - more mailing lists