Different sizes for struct _reent?

Joel Sherrill joel.sherrill at OARcorp.com
Wed Jan 5 21:40:30 UTC 2000


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,
> 
>   ------------------------------------------------------------------------
>                      Name: smorgan.vcf
>    smorgan.vcf       Type: VCard (text/x-vcard)
>                  Encoding: 7bit
>               Description: Card for Steve Morgan

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



More information about the users mailing list