[ECOS] Redboot question [saved_context]
Nick Garnett
nickg@ecoscentric.com
Mon Aug 2 18:16:00 GMT 2004
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
More information about the Ecos-discuss
mailing list