x86, nx: Mark the ACPI resume trampoline code as +x
authorH. Peter Anvin <hpa@zytor.com>
Mon, 7 Feb 2011 05:16:09 +0000 (21:16 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 7 Feb 2011 08:07:13 +0000 (09:07 +0100)
commitd344e38b2c151ca5e5e39f562017127e93912528
tree806fa10a9a103ae6b39ff90dab1bb5cb15f70f03
parent8dbdea8444d303a772bceb1ba963f0e3273bfc5e
x86, nx: Mark the ACPI resume trampoline code as +x

We reserve lowmem for the things that need it, like the ACPI
wakeup code, way early to guarantee availability.  This happens
before we set up the proper pagetables, so set_memory_x() has no
effect.

Until we have a better solution, use an initcall to mark the
wakeup code executable.

Originally-by: Matthieu Castet <castet.matthieu@free.fr>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Matthias Hopf <mhopf@suse.de>
Cc: rjw@sisk.pl
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <4D4F8019.2090104@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/acpi/sleep.c