Memory allocation problem

Joel Sherrill joel.sherrill at OARcorp.com
Thu Sep 21 19:19:42 UTC 2000



"Alexander D. Tarkhov" wrote:
> 
> Hello, guru,
> 
> I'd like to thank Joel for help on mips64orion bspstart.c understanding.
> That helped, really.
> Still, I got one more question:
> Where does bit_rtems take sources for libbsp?
> I mean:
> We try to build RTEMS 4.0.0 cross compiler.
> We use "$./bit_rtems mips64orion" for that purpose.
> There is a line "BSP=all" in our user.cfg file.
> I am sure that bspstart.c is NOT taken from
> /tools/rtems-4.0.0/c/src/lib/libbsp/mips64orion/p4000/startup directory.
> It is obtained somewhere else.
> It seems that it is taken from ....../no_cpu/no_bsp/startup
> 
> Is it a bug in one of the Makefiles?
> Is it OK?
> Where does this source actually comes from?
> I had to edit all bspstart.c files to be sure of result :)

bspstart.c NORMALLY comes from libbsp/CPU/BSP/startup.  I can't 
think of a case where this does not happen.  Other files may
come out of a shared location via VPATH magic.

bit_rtems is normally invoked as "bit_rtems CPU BSP".  I would
recommend (1) logging the output of the build and looking
in there for where bspstart.c is build and (2) try invoking 
configure and make directly exactly as you like.

[As an aside... I am beginning to think that the bit* scripts
are more painful than good now that better ways exist to build
and distribute tools.]
 
> Thank you in advance.
> 
> Alexander

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