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]
Other format: [Raw text]

Re: Redboot question [saved_context]


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


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