This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: What is RedBoot_INIT_TAB,
- To: "Narayana, Venkat A." <NarayVA at nsc-msg01 dot network dot com>
- Subject: Re: [ECOS] What is RedBoot_INIT_TAB,
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 31 May 2001 17:03:42 +0100
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <A7E1C26945C8D211ADBF0008C709661A02A48813@nsc-msg02.network.com>
"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/