From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: mingo@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH[ Export __PAGE_KERNEL_EXEC for modules (vmmon)
Date: Fri, 29 Oct 2004 00:11:48 +0200 [thread overview]
Message-ID: <20041028221148.GE24972@vana.vc.cvut.cz> (raw)
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);
next reply other threads:[~2004-10-28 22:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-28 22:11 Petr Vandrovec [this message]
2004-10-29 9:03 ` Arjan van de Ven
2004-10-29 11:38 ` Petr Vandrovec
2004-10-29 11:42 ` Arjan van de Ven
2004-10-29 12:00 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041028221148.GE24972@vana.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®