From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sunset.davemloft.net (unknown [74.93.104.97]) by ozlabs.org (Postfix) with ESMTP id 6A33ADDDE0 for ; Sat, 7 Feb 2009 19:22:19 +1100 (EST) Date: Sat, 07 Feb 2009 00:22:14 -0800 (PST) Message-Id: <20090207.002214.259050726.davem@davemloft.net> To: benh@kernel.crashing.org Subject: Re: [PATCH] powerpc: Rework I$/D$ coherency (v2) From: David Miller In-Reply-To: <20090202001035.E1390DDF3D@ozlabs.org> References: <20090202001035.E1390DDF3D@ozlabs.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Benjamin Herrenschmidt 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 :-)