[PATCH] powerpc: Rework I$/D$ coherency (v2)

David Miller davem at davemloft.net
Sat Feb 7 19:22:14 EST 2009


From: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Date: Mon, 02 Feb 2009 11:10:24 +1100

> +/* has to be a macro because of include dependencies */
> +static inline int is_exec_fault(void)
> +{
> +	return current->thread.regs && TRAP(current->thread.regs) == 0x400;
> +}

Nice macro :-)



More information about the Linuxppc-dev mailing list