From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11186 invoked by alias); 10 Jun 2005 08:41:02 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 11172 invoked by uid 22791); 10 Jun 2005 08:40:58 -0000 Received: from web53402.mail.yahoo.com (HELO web53402.mail.yahoo.com) (206.190.37.49) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Fri, 10 Jun 2005 08:40:58 +0000 Received: (qmail 54366 invoked by uid 60001); 10 Jun 2005 08:40:57 -0000 Message-ID: <20050610084057.54361.qmail@web53402.mail.yahoo.com> Received: from [192.19.199.27] by web53402.mail.yahoo.com via HTTP; Fri, 10 Jun 2005 01:40:56 PDT Date: Fri, 10 Jun 2005 08:41:00 -0000 From: Sujoy Ray To: ecos-discuss@sources.redhat.com Cc: raysujoy@yahoo.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: [ECOS] IXP425 Big Endian Mode X-SW-Source: 2005-06/txt/msg00072.txt.bz2 Hello All, I am just going through the redboot source code for IXP425 and found the following line in HAL_PLATFORM_SETUP.h #ifdef CYGINT_HAL_ARM_BIGENDIAN // set big-endian mrc p15, 0, r0, c1, c0, 0 orr r0, r0, #0x80 mcr p15, 0, r0, c1, c0, 0 CPWAIT r0 #endif I understand that these lines are for changing the processor mode into Big-endian. I have seen that Redboot for IXP425 has been compiled and linked in Big-endian mode - this I further confirmed using objdump. But at reset IXP425 starts operation in little endian mode. Now, in order the switch the endianness, the processor should be able to execute the above mentioned code and this code is in big-endian order. Now, I have a question - how the processor executes the above mentioned code, when it is in little endian mode. I know for sure that there is some way to do that because the code works fine. I think 'am missing some basic concept - any suggestion will be highly appreciated. Thanks in advance, Sujoy Ray. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss