From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 7 Aug 2013 14:20:49 +1000 From: Paul Mackerras To: Anton Blanchard Subject: Re: [PATCH 36/63] powerpc: Book 3S MMU little endian support Message-ID: <20130807042049.GC31007@iris.ozlabs.ibm.com> References: <1375804940-22050-1-git-send-email-anton@samba.org> <1375804940-22050-37-git-send-email-anton@samba.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1375804940-22050-37-git-send-email-anton@samba.org> Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Aug 07, 2013 at 02:01:53AM +1000, Anton Blanchard wrote: > +#ifdef __BIG_ENDIAN__ > #define HPTE_LOCK_BIT 3 > +#else > +#define HPTE_LOCK_BIT (63-3) > +#endif Are you deliberately using a different bit here? AFAICS you are using 0x20 in the 7th byte as the lock bit for LE, whereas we use 0x08 in that byte on BE. Both are software-use bits, so it will still work, but is there a rationale for the change? Or did you mean (56+3) rather than (63-3)? Paul.