Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755270AbXJIWfN (ORCPT ); Tue, 9 Oct 2007 18:35:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751381AbXJIWe7 (ORCPT ); Tue, 9 Oct 2007 18:34:59 -0400 Received: from khc.piap.pl ([195.187.100.11]:41508 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750930AbXJIWe7 (ORCPT ); Tue, 9 Oct 2007 18:34:59 -0400 To: Jeremy Fitzhardinge Cc: Timur Tabi , 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> <470BD266.8020302@goop.org> <470BF566.6010204@goop.org> From: Krzysztof Halasa Date: Wed, 10 Oct 2007 00:34:56 +0200 In-Reply-To: <470BF566.6010204@goop.org> (Jeremy Fitzhardinge's message of "Tue, 09 Oct 2007 14:40:54 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 25 Jeremy Fitzhardinge writes: > but the gist is that IBM has > traditionally bit 0 for MSB and x for LSB. It's a pain to work with: > for one, bits in the same place in a word (say, control register) are > renumbered in 32 vs 64. I wasn't aware of that, but it doesn't really change the bit order, only bit names (numbers actually). Extremely weird BTW but I guess these things weren't that obvious to everyone some 50 years ago. > And I've worked on at least one piece of > hardware in which the hardware designer had a brain-fart and first board > had bit 0 on the CPU wired to bit 0 on the northbridge - should have > been 31 -> 0, 30 -> 1, etc... I suspect the board wasn't able to run any OS, was it? :-) Would make a real example of the different order of bits, though. -- Krzysztof Halasa - 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/