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

Michael Ellerman michael at ellerman.id.au
Mon Mar 2 18:38:01 EST 2009


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>

> +/* 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090302/e396b4aa/attachment.pgp>


More information about the Linuxppc-dev mailing list