From: Marco Stornelli <marco.stornelli@gmail.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: x86@kernel.org, andi@firstfloor.org,
Tim Bird <tim.bird@am.sony.com>,
tglx@linutronix.de
Subject: [PATCH] archs: add Kconfig symbol for set memory ro feature
Date: Sat, 30 Oct 2010 10:56:32 +0200 [thread overview]
Message-ID: <4CCBDDC0.8040502@gmail.com> (raw)
From: Marco Stornelli <marco.stornelli@gmail.com>
This patch adds a new Kconfig symbol to recognize which arch implements a couple of functions set_memory_ro/set_memory_rw. These functions sets/unsets read-only flag at page table entry level. Until now only x86
has got these functions. Next target will be arm and powerpc.
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
---
--- linux-2.6.36-orig/arch/Kconfig 2010-09-13 01:07:37.000000000 +0200
+++ linux-2.6.36/arch/Kconfig 2010-10-30 10:27:16.000000000 +0200
@@ -83,6 +83,9 @@ config USER_RETURN_NOTIFIER
config HAVE_IOREMAP_PROT
bool
+config HAVE_SET_MEMORY_RO
+ bool
+
config HAVE_KPROBES
bool
--- linux-2.6.36-orig/arch/x86/Kconfig 2010-09-13 01:07:37.000000000 +0200
+++ linux-2.6.36/arch/x86/Kconfig 2010-10-30 10:27:38.000000000 +0200
@@ -26,6 +26,7 @@ config X86
select HAVE_OPROFILE
select HAVE_PERF_EVENTS if (!M386 && !M486)
select HAVE_IOREMAP_PROT
+ select HAVE_SET_MEMORY_RO
select HAVE_KPROBES
select ARCH_WANT_OPTIONAL_GPIOLIB
select ARCH_WANT_FRAME_POINTERS
next reply other threads:[~2010-10-30 8:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-30 8:56 Marco Stornelli [this message]
2010-11-03 7:54 ` [PATCH] archs: add Kconfig symbol for set memory ro feature Marco Stornelli
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=4CCBDDC0.8040502@gmail.com \
--to=marco.stornelli@gmail.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=tim.bird@am.sony.com \
--cc=x86@kernel.org \
/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