public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Sujoy Ray <raysujoy@yahoo.com>
To: ecos-discuss@sources.redhat.com
Cc: raysujoy@yahoo.com
Subject: [ECOS] IXP425 Big Endian Mode
Date: Fri, 10 Jun 2005 08:41:00 -0000	[thread overview]
Message-ID: <20050610084057.54361.qmail@web53402.mail.yahoo.com> (raw)

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

             reply	other threads:[~2005-06-10  8:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-10  8:41 Sujoy Ray [this message]
2005-06-10  9:51 ` Peter Korsgaard
2005-06-10 10:34   ` Sujoy Ray
2005-06-10 11:04     ` jerzy dyrda
     [not found] <20050918202057.38425.qmail@web53410.mail.yahoo.com>
2005-09-19  4:31 ` Sujoy Ray

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050610084057.54361.qmail@web53402.mail.yahoo.com \
    --to=raysujoy@yahoo.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).