This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Could somebody help me out of this problem? Thanks
- From: "Qiang Huang" <jameshq at liverpool dot ac dot uk>
- To: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 16 Sep 2002 09:05:27 +0100
- Subject: [ECOS] Could somebody help me out of this problem? Thanks
Dear all
I am stuck by this problem for days, could anybody pls help me out of it.
Thanks a lot
in the beginning of the context.S file
! --------------------------------------------------------------------------
----
! hal_thread_switch_context
! Switch thread contexts
! %o0 = address of sp of next thread to execute
! %o1 = address of sp save location of current thread
.global hal_thread_switch_context
hal_thread_switch_context:
...................
when hal_thread_switch_context routine is called , won't a new register
window opened for it? so the parameters passed from the caller in %o0, %o1
will become %i0, %i1 in the callee, which is inside
hal_thread_switch_context (callee), so why %o0 is used in
hal_thread_switch_context for the parameter passed from caller,(shouldn't
that be %i0?)
Thanks a lot!
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