Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755436AbXJITp1 (ORCPT ); Tue, 9 Oct 2007 15:45:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753080AbXJITpM (ORCPT ); Tue, 9 Oct 2007 15:45:12 -0400 Received: from de01egw02.freescale.net ([192.88.165.103]:56846 "EHLO de01egw02.freescale.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752551AbXJITpK (ORCPT ); Tue, 9 Oct 2007 15:45:10 -0400 Message-ID: <470BDA3A.1060809@freescale.com> Date: Tue, 09 Oct 2007 14:44:58 -0500 From: Timur Tabi Organization: Freescale User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: Krzysztof Halasa CC: Lennart Sorensen , Anton Altaparmakov , Jan Engelhardt , Linux Kernel Mailing List Subject: Re: __LITTLE_ENDIAN vs. __LITTLE_ENDIAN_BITFIELD References: <4706822D.4070509@freescale.com> <470691EB.7020209@freescale.com> <4706A842.9030507@freescale.com> <20071009174623.GC4003@csclub.uwaterloo.ca> <470BC0D5.70305@freescale.com> <470BCEFC.9060302@freescale.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 990 Lines: 24 Krzysztof Halasa wrote: > Timur Tabi writes: > >>> There is no such thing as bit-order. >> Yes, there is. You need to read the article at >> http://www.linuxjournal.com/article/6788. Explains what it means for >> bits to be in one order versus another. This is from the perspective >> of external devices, not the CPU (which is always consistent with >> regards to bit order) > > Have you ever seen a device or platform with the bits reversed? I think when the PowerPC is running in little-endian mode, that might be the case. It needs to be able to write a byte in big-endian mode, and then read that byte back in little-endian mode and have it be the same byte. -- Timur Tabi Linux Kernel Developer @ Freescale - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/