* [PATCH] archs: add Kconfig symbol for set memory ro feature
@ 2010-10-30 8:56 Marco Stornelli
2010-11-03 7:54 ` Marco Stornelli
0 siblings, 1 reply; 2+ messages in thread
From: Marco Stornelli @ 2010-10-30 8:56 UTC (permalink / raw)
To: Linux Kernel; +Cc: x86, andi, Tim Bird, tglx
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] archs: add Kconfig symbol for set memory ro feature
2010-10-30 8:56 [PATCH] archs: add Kconfig symbol for set memory ro feature Marco Stornelli
@ 2010-11-03 7:54 ` Marco Stornelli
0 siblings, 0 replies; 2+ messages in thread
From: Marco Stornelli @ 2010-11-03 7:54 UTC (permalink / raw)
To: Linux Kernel; +Cc: x86, andi, Tim Bird, tglx
2010/10/30 Marco Stornelli <marco.stornelli@gmail.com>:
> 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>
Any comments?
Marco
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-03 7:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-30 8:56 [PATCH] archs: add Kconfig symbol for set memory ro feature Marco Stornelli
2010-11-03 7:54 ` Marco Stornelli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.