[ECOS] Could somebody help me out of this problem? Thanks

Qiang Huang jameshq@liverpool.ac.uk
Mon Sep 16 01:21:00 GMT 2002


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



More information about the Ecos-discuss mailing list