Hi, >> I am now porting ecos to Samsung S5pc100(cortex-A8). > > Great, that would be the first Cortex-A8 contribution back to the tree. > >> In the ecos.db, I add my own package and target. >> >> Can i use CYGPKG_HAL_CORTEXM as one of my packages in target? >> >> I've checked that cortex-m series and cortex-a series are both support >> thumb-2 instruction set. >> >> Am i right? > > Well, yes, the Cortex-M and Cortex-A families both have Thumb2 support > in common. However, there are pretty significant differences between > them: > > A series: cache/MMU, ARMv7-A instruction set, VFP, Jazelle, NEON, > MPcore (A9,A15) > M series: no cache/MMU, ARMv6-M ARMv7-M(E) instruction sets, FPU (M4), SIMD > (M4) > > I would think the differences are enough that a new Cortex-A hal > should be added. This may be more than you bargained for, but seems > like the 'right' way to go. > > This is just my 2 cents on it. I hope someone else will chime in > correct me if I'm off base here. >
The Freescale i.MX51 implementation (which is a Cortex-A8 CPU) is based on eCos ARM/ARM9 HAL's. I would suggest starting there instead of creating a new HAL. Bye... -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss