This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Redboot question [saved_context]
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: John Newlin <jnewlin at rawbw dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 02 Aug 2004 19:16:20 +0100
- Subject: Re: [ECOS] Redboot question [saved_context]
- References: <20040802105752.C81108@shell.rawbw.com>
John Newlin <jnewlin@rawbw.com> writes:
> In main.c, there's a global: saved_context.
>
> Is hal_thread_switch_context supposed to allocated the space for this?
> I'm sure I'm just missing something here.
The space to save the context is allocated on the stack, this location
is then used to contain a pointer to it and is passed to
HAL_THREAD_LOAD_CONTEXT() later, when the context is to be reloaded.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss