This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: What is RedBoot_INIT_TAB,


"Narayana, Venkat A." wrote:
> 
> Hi,
> I am trying to make a ROM startup for my XScale based board
> and i am getting an error, while single-stepping this code, which is in
> main.c/cyg_start fucn:
> 
> for (init_entry = __RedBoot_INIT_TAB__; init_entry !=
> &__RedBoot_INIT_TAB_END__;  init_entry++) {
>         (*init_entry->fun)();
>     }
> 
> I found that RedBoot_INIT_TAB is defined, in CYG_HAL_TABLE_BEGIN macro,
> but by the time i reach the above point, i.e cyg_start function, i haven't
> seen anything
> which is poulating this Table. So the question is, if no one is putting some
> data(actual a
> function pointer), the why is it that we are calling init_entry->fun,
> function?
> Is there something i didn't understood or missed?
> Could i choose to call this guy, only when the board is ' warm_reset'?

Look for the RedBoot_init macro. You'll find instances in redboot and
probably some drivers.

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
<advert> Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]