]> git.baikalelectronics.ru Git - kernel.git/commit
x86: teach the static_protection function about high mappings
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 4 Feb 2008 15:48:05 +0000 (16:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 4 Feb 2008 15:48:05 +0000 (16:48 +0100)
commita3784a69de2018f89fd1b792c91480d41b71c6c6
tree55ede62b277fae1fd836a843274561c235802fb4
parent4662381f24e1f3f407c7bc340f7ddceabd577d8b
x86: teach the static_protection function about high mappings

Right now, enforcing that the high mapping of the kernel text doesn't
get the NX bit is done deep in the guts of CPA, rather than in the
static_protection() function that enforces all other per-arch sanity
checks.

This patch moves this sanity check into the central static_protection()
function instead, and makes it apply ONLY to the kernel text, not to all
other areas in the high mapping.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/pageattr.c