[ECOS] Gameboy Advance vectors.S (dealing with BIOS)

Bill Diehls billabloke@yahoo.com
Tue Jan 22 12:09:00 GMT 2002


Hi Jonathan,
Stupid question :) -- even though the ldi and mlt
files are machine generated, I can edit them directly?

thanks,
--bill
 
--- Jonathan Larmour <jlarmour@redhat.com> wrote:
> Bill Diehls wrote:
> > 
> > Hi Jonathan,
> > Thank you for the suggestions!  Regarding
> > PLATFORM_VECTORS and (3) (described below), it
> seems
> > that PLATFORM_VECTORS is good for inserting code
> into
> > vectors.S, but as far as inserting a new section
> (with
> > its own absolute address) into arm.ld, another
> > mechanism is required.  One possibility is to
> create
> > PLATFORM_SECTION and insert it into arm.ld such
> as:
> > 
> > #ifndef PLATFORM_SECTION
> > #define PLATFORM_SECTION
> > #endif
> > 
> > #define SECTION_fixed_vectors(_region_, _vma_,
> _lma_)
> > \r
> >     .fixed_vectors _vma_ : _lma_ \r
> >     { FORCE_OUTPUT; KEEP (*(.fixed_vectors)) } \r
> >     > _region_ \r
> >     PLATFORM_SECTION
> > 
> > That is, if it wants to be included after
> > fixed_vectors.  Is there a better way to do this?
> 
> Probably, what about:
> 
> #ifndef CYG_PLF_DEFINED_SECTION
> #define CYG_PLF_DEFINED_SECTION( _region_, _vma_,
> _lma_ )
> #endif
> 
> #define SECTION_platform_defined1( _region_, _vma_,
> _lma_)
>  CYG_PLF_DEFINED_SECTION( _region_, _vma_, _lma_ )
> 
> You'll have to ensure CYG_PLF_DEFINED_SECTION is
> defined in hal.h but
> that's easy. Then in the memory layout files
> (.ldi/.mlt/.h) for the GBA,
> make sure that new section is added and placed
> appropriately. Then other
> platforms don't need to know about it.
> 
> Jifl
> -- 
> Red Hat, Rustat House, Clifton Road, Cambridge, UK.
> Tel: +44 (1223) 271062
> Maybe this world is another planet's Hell -Aldous
> Huxley || Opinions==mine


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



More information about the Ecos-discuss mailing list