public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gthomas@redhat.com>
To: Chris Morrow <cmorrow@YottaYotta.com>
Cc: ecos-discuss@sourceware.cygnus.com
Subject: RE: [ECOS] 64 bit mips arch, and __DEVTAB__
Date: Wed, 12 Jul 2000 15:24:00 -0000	[thread overview]
Message-ID: <XFMail.20000712162425.gthomas@redhat.com> (raw)
In-Reply-To: <396CEDFD.829746C2@YottaYotta.com>

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)))

  reply	other threads:[~2000-07-12 15:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-12 15:15 Chris Morrow
2000-07-12 15:24 ` Gary Thomas [this message]
2000-07-12 15:52   ` Chris Morrow
2000-07-12 16:50   ` Jonathan Larmour
2000-07-12 17:00     ` Chris Morrow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=XFMail.20000712162425.gthomas@redhat.com \
    --to=gthomas@redhat.com \
    --cc=cmorrow@YottaYotta.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).