[ECOS] Debug Problem
ligl
sahala@sz.huawei.com.cn
Sat Jul 29 01:07:00 GMT 2000
ÃÂ
I can debugÃÂ the "hello" example.but when
I reach the "====>" line ,I can't continue,why? Thanks very
much!
ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ void
Cyg_Scheduler::start() ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
{ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
CYG_REPORT_FUNCTION(); ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ // Get the first
thread to run from scheduler ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ register Cyg_Thread *next =
scheduler.schedule();
ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ CYG_ASSERTCLASS( next, "Bad initial thread" );
ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ need_reschedule = false;ÃÂ ÃÂ ÃÂ // finished
rescheduling ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
current_thread = next;ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ // restore current thread
pointer
ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ #ifdef
CYGVAR_KERNEL_COUNTERS_CLOCK ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ // Reference the real time clock. This ensures that at least
one ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ // reference to
the kernel_clock.o object exists, without which ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ // the object will not be included while
linking. ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
CYG_REFERENCE_OBJECT( Cyg_Clock::real_time_clock ); ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ #endif
ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ // Let the interrupts
go ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ Cyg_Interrupt::enable_interrupts(); ÃÂ ÃÂ ÃÂ
====>ÃÂ HAL_THREAD_LOAD_CONTEXT(
&next->stack_ptr );ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ }
ÃÂ
More information about the Ecos-discuss
mailing list