This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
It will better if you remove all your little/big endian hacks. Or Take a fresh view. And take care of the following -
My target uses SH7709S.1) CYGPKG_HAL_MIPS_MSBFIRST - should be defined, (and not CYGPKG_HAL_MIPS_LSBFIRST)
CYG_BYTEORDER is defined as below in packages\hal\sh\arch\current\include\basetype.h(60)2) # define CYG_BYTEORDER as CYG_MSBFIRST (and not as CYG_LSBFIRST). It should be decided based on option 1) actually.
__LITTLE_ENDIAN__ are defined in next files. packages\hal\common\current\include\hal_stub.h(100): #if (CYG_BYTEORDER==CYG_LSBFIRST) # if !defined(__LITTLE_ENDIAN__) # define __LITTLE_ENDIAN__ # endif # if !defined(_LITTLE_ENDIAN) # define _LITTLE_ENDIAN # endif #endif
packages\redboot\current\include\net\net.h(86): #if (CYG_BYTEORDER == CYG_LSBFIRST) #ifndef __LITTLE_ENDIAN__ #define __LITTLE_ENDIAN__ #endif extern unsigned long ntohl(unsigned long x); extern unsigned short ntohs(unsigned short x); #else #define ntohl(x) (x) #define ntohs(x) (x) #endif
I think redboot program space is differnt so I could exclude it. The question is, between basetype.h and hal_stub.h which is included first ? I never defined __LITTLE_ENDIAN__, so I thought even right now, # define CYG_BYTEORDER CYG_MSBFIRST // Big endian Isn't it?
I look forward your reply. Thanks in advance.
Attachment:
ecos.db.gz
Description: GNU Zip compressed data
-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |