Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mh0Aq-0000nv-6e for mharc-grub-devel@gnu.org; Fri, 28 Aug 2009 08:03:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mh0Ak-0000kg-Ll for grub-devel@gnu.org; Fri, 28 Aug 2009 08:03:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mh0Ae-0000jW-UR for grub-devel@gnu.org; Fri, 28 Aug 2009 08:03:13 -0400 Received: from [199.232.76.173] (port=60076 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh0Ad-0000jD-2F for grub-devel@gnu.org; Fri, 28 Aug 2009 08:03:07 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:56523) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mh0Ac-0003SH-BT for grub-devel@gnu.org; Fri, 28 Aug 2009 08:03:06 -0400 Received: by bwz22 with SMTP id 22so1836416bwz.42 for ; Fri, 28 Aug 2009 05:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ZJ8xYldSygBp/UE5ynIlu14WxqOtb63TVM5JB+BdTxY=; b=rBVsnneTLkgvWfTJmH5vOuohmccEYBCGaX2oUUEaiUwfB2GO1d1tjjvRGYYzVmnJbH 9T/vmSWMzFCZyxZnvf2ZV3OC4ZKTo+7p7d49FaVvC3Ik0+j85c9BE6UoQ3lD30LOXf+B qn1PDiVRU4B2eAaXBRDdV5Ru7x7lbYR0ytOzo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QIdlaFUJEqI4p7ee4zMGA2Z61+MtkgGflYjWm+lXrAmFbqwCnudqOQXN2C7//SBxNz +NaFllIn3STdBSXbU722YMpa9V5zIYZQvqPdtFIFIYAVVIvf2CD9PNwj9Xs0/djFbzUx 2pTDExvLRkQhxttw7rdUMHV0Gd7dO4CBobojY= MIME-Version: 1.0 Received: by 10.204.26.134 with SMTP id e6mr879410bkc.87.1251460984970; Fri, 28 Aug 2009 05:03:04 -0700 (PDT) In-Reply-To: References: Date: Fri, 28 Aug 2009 14:03:04 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Detect endian in cpio fs X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2009 12:03:16 -0000 On Thu, Aug 27, 2009 at 10:27 AM, Bean wrote: > Hi, > > This patch allows to access big/little endian cpio archive from > big/little endian machine. Quick glance showed that you use swap_bytes. Could you use grub_*_to_cpu* instead? This would simplify the future maintainability if someone decides to port to a very special platform (e.g. mixed-endian) since code would be uniform > > -- > Bean > > gitgrub home: http://github.com/grub/grub/ > my fork page: http://github.com/bean123/grub/ > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git