[PATCH[ Export __PAGE_KERNEL_EXEC for modules (vmmon)

From: Petr Vandrovec
Date: Thu Oct 28 2004 - 17:23:15 EST


Hello Ingo,
recently support for NX on i386 arrived to 2.6.x kernel, and I have
some problems building code which uses vmap since then - PAGE_KERNEL_EXEC
expands to __PAGE_KERNEL_EXEC, and this one is not accessible to modules.

Or should I just use __pgprot(__PAGE_KERNEL & ~_PAGE_NX) or
__pgprot(_PAGE_KERNEL_EXEC) instead as pgprot argument to vmap?
Thanks,
Petr Vandrovec



--- linux/arch/i386/kernel/i386_ksyms.c 2004-10-27 22:55:58.000000000 +0200
+++ linux/arch/i386/kernel/i386_ksyms.c 2004-10-28 23:59:22.000000000 +0200
@@ -179,6 +179,7 @@
#endif

EXPORT_SYMBOL(__PAGE_KERNEL);
+EXPORT_SYMBOL(__PAGE_KERNEL_EXEC);

#ifdef CONFIG_HIGHMEM
EXPORT_SYMBOL(kmap);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/