From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw01.freescale.net (de01egw01.freescale.net [192.88.165.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "de01egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 0E2B8DDE30 for ; Thu, 9 Aug 2007 02:55:28 +1000 (EST) Message-ID: <46B9F57A.9070604@freescale.com> Date: Wed, 08 Aug 2007 11:55:22 -0500 From: Scott Wood MIME-Version: 1.0 To: Yoni Levin Subject: Re: how the bytes ordered in mpc8313 References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Yoni Levin wrote: > I have mpc83xx, > > I saw that I need to use swab32 to any read\write operation from registers, BTW, you should be using in/out_le32() (or for PCI MMIO, readl/writel) rather than swab32(). This will be more efficient since it can use the lwbrx/stwbrx instructions, and it will keep working even if the code is run little-endian. -Scott