This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: 64 bit mips arch, and __DEVTAB__
- To: Gary Thomas <gthomas at redhat dot com>
- Subject: Re: [ECOS] 64 bit mips arch, and __DEVTAB__
- From: Chris Morrow <cmorrow at YottaYotta dot com>
- Date: Wed, 12 Jul 2000 16:51:52 -0600
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: YottaYotta Inc.
- References: <XFMail.20000712162425.gthomas@redhat.com>
Gary Thomas wrote:
>
> On 12-Jul-2000 Chris Morrow wrote:
> > I'm working on porting eCos to a 64 bit mips cpu and have encountered
> > a problem with the DEVTAB_ENTRY macro defined in
> > io/common/current/include/devtab.h. It would appear that gcc is aligning
> > each piece of data added to the .devtab section on 8 byte boundries.
> > This
> > causes a space between entries and causes the loop in cyg_io_init() in
> > io/commmon/current/iosys.c to fail.
> >
> > Depending on whether it is legitimate to assume that there is no padding
> > for data objects added separately to a section with the section
> > __attribute__,
> > this may be a compiler issue rather than a eCos issue.
> >
>
> One concern [which we may have not thought about] is whether these data will
> be properly aligned, even if the sizes match up.
>
> Can you try adding the "aligned()" attribute to the devtab structure and see
> what happens?
> cyg_devtab_entry_t _l __attribute__ ((section(".devtab"),aligned(1)))
Didn't make a difference.
--
Chris Morrow YottaYotta Inc.
email: cmorrow@yottayotta.com
phone: (780) 439 9000 ext 227
web: http://www.yottayotta.com