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]

Question about "hal_thread_load_context" in sparc


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


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