This is the mail archive of the ecos-discuss@sources.redhat.com 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]

var_regs.h include for mips like ppc?


My mips target uses a CPU with extra stuff including about a 
zillion registers much like some of the ppc derivatives.

I want to add an include in mips-regs.h to pick up a 
variant var_regs.h like is done for PPC, since it seems
to me that all those register defines belong with the
variant, not the platform.

What I ran into is that CYGARC_HAL_COMMON_EXPORT_CPU_MACROS
gets #defined in a few files before including mips-regs.h,
but some other include files get processed first.

With my changes those other include files now cause
mips-regs.h to get pulled in before the 
CYGARC_HAL_COMMON_EXPORT_CPU_MACROS define gets processed and
the #ifndef wrapper in mips-regs.h keeps the definitions from
getting picked up later.

To get things running I just moved the EXPORT_CPU_MACROS
ahead of the offending include files.

What's a good way of handling a twisted mess of include files
like this?

--
Andrew Dyer               |  adyer@righthandtech.com
Sr. Engineer              |  (630) 238-0789
RightHand Technologies    |  (630) 238-0469 (fax)
735 N. Edgewood Ave.      |
Suite D                   |
Wood Dale, IL 60191-1261  |
USA                       |

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]