This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: help! redboot console
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "kneep" <caozhiyuan at hotmail dot com>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: Sun, 9 May 2004 20:13:13 -0700
- Subject: RE: [ECOS] help! redboot console
> From: kneep
>
> Does endian affect the byte order of a STRING?
When an object file is loaded, the data in it are loaded 32 bits at a time,
not a byte at a time, so any disagreement between the order will show up as
reversed bytes within each 32-bit word.
> And I confirm that Redboot is compiled as big-endian and my
> machine is running big-endian because everything goes well except
> that problem.
> So what will the point be?
Don't know. But it sure smells like a big-endian/little-endian problem. You
say you're running a RAM-based redboot. Does that mean that you're using
something else to load redboot? If so, does that support big-endian mode?
--
Ciao, Paul D. DeRocco
Paul mailto:pderocco@ix.netcom.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