Thread (4 messages) 4 messages, 2 authors, 2009-03-02

Re: [PATCH] powerpc/mm: Merge various PTE bits and accessors definitions

flat view

From: Michael Ellerman <hidden>
Date: 2009-03-02 07:38:01

On Mon, 2009-03-02 at 17:22 +1100, Benjamin Herrenschmidt wrote:
Now that they are almost identical, we can merge some of the definitions
related to the PTE format into common files.
<snip>
quoted hunk ↗ jump to hunk
+/* Protection used for kernel text. We want the debuggers to be able to
+ * set breakpoints anywhere, so don't write protect the kernel text
+ * on platforms where such control is possible.
+ */
+#if defined(CONFIG_KGDB) || defined(CONFIG_XMON) || defined(CONFIG_BDI_SWITCH) ||\
+	defined(CONFIG_KPROBES)
+#define PAGE_KERNEL_TEXT	PAGE_KERNEL_X
+#else
+#define PAGE_KERNEL_TEXT	PAGE_KERNEL_ROX
+#endif
What about FTRACE? ∞TRACE etc.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help