]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Add vsyscall address helper
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 28 Sep 2018 16:02:28 +0000 (09:02 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 9 Oct 2018 14:51:16 +0000 (16:51 +0200)
commitefb26ebbb95d84c00337d6dc66e591d108c0ca26
treead406d36d9187326b1e318edec6da9b262691a2f
parentab81f3c73e0ddae00c4de04a55da7abce8cf1b9b
x86/mm: Add vsyscall address helper

We will shortly be using this check in two locations.  Put it in
a helper before we do so.

Let's also insert PAGE_MASK instead of the open-coded ~0xfff.
It is easier to read and also more obviously correct considering
the implicit type conversion that has to happen when it is not
an implicit 'unsigned long'.

Cc: x86@kernel.org
Cc: Jann Horn <jannh@google.com>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180928160228.C593509B@viggo.jf.intel.com
arch/x86/mm/fault.c