[ECOS] Question about "hal_thread_load_context" in sparc

Qiang Huang jameshq@liverpool.ac.uk
Tue Sep 10 09:20:00 GMT 2002


Hi all:
    I have some questions about the "hal_thread_load_context" in Sparc, hope
anybody can help me, Thanks a lot!

Q1.
In the "hal_thread_load_context" I just can find out that only the last one
register window of the destination thread is restored, why we don't need to
restore the whole set of register windows.(not just one)? Or I miss anything
in the source?

Q2.
In the icontext.c file the initialising the thread context why we need to
set the following code:
regs->o[7] = (entry - 8);  // why we need to set it (-8) ? how to calculate
the -8?

Thanks a lot!

Best regards!

qiang


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list