Different sizes for struct _reent?
smorgan at almaden.ibm.com
Tue Jan 25 18:42:23 UTC 2000
On the "better late than never" front, one of the engineers
working on our project found that removing "#pragma align 4"
didn't fix this problem. He found that changing the
statement to "#pragma align 16" works better. A very few
test programs do not terminate properly; however, we don't
know whether this is due to the same problem or a different
Joel Sherrill wrote:
> Steve Morgan wrote:
> > Resending: Was accidentally sent to rtems-list instead of rtems-users!
> There is a "#pragma align" in a file under score/cpu/i960. Remove
> that line. This pragma used to make RTEMS use alignments compatible
> with the GNU960 toolset but all it does now is create imcompatabilities.
> > Steve Morgan wrote:
> > >
> > > This is my first posting to this list and I am relatively new to RTEMS,
> > > so please don't take offense with my obvious ignorance.
> > >
> > > We've built the publicly available RTEMS 4.0.0 for the GHV80960PCI
> > > evaluation board for the -VH (embedded) variant of Intel's i960
> > > processor, using a board support package kindly sent to us by Gerwin
> > > Pfab. (Gerwin: Thanks!!) The resulting system builds and works fine with
> > > only one known exception: printf() doesn't work.
> > >
> > > After a considerable amount of debugging, head scratching and code
> > > reading, it seems that the problem is caused by different portions of
> > > the system thinking that struct _reent has a different structure,
> > > including a different length. (In one place it seems to have a length of
> > > 0x58, while in another it seems to have a length of 0x60.) The field
> > > that determines whether stdio has been initialized is in different
> > > places in the different versions of struct _reent. Sanely, printf()
> > > refuses to do anything unless stdio has been initialized.
> > >
> > > I'm sure that I've somehow caused the problem, probably by having
> > > included some wrong library version or other, but it isn't obvious to me
> > > where the problem lies. I would truly appreciate your help in tracking
> > > down and fixing this problem.
> > >
> > > Thanks,
> Joel Sherrill, Ph.D. Director of Research & Development
> joel at OARcorp.com On-Line Applications Research
> Ask me about RTEMS: a free RTOS Huntsville AL 35805
> Support Available (256) 722-9985
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 348 bytes
Desc: Card for Steve Morgan
More information about the users