This is the mail archive of the ecos-discuss@sourceware.org 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]

Re: question about twothreads.c


jiang jet wrote:

> I have found the answer of my question :)
> anyway, thank you for viewing my question..
> 
> still one question..how does ecos jump to "main" function??
> defualt cyg_start just jump to cyg_user_start, but have no clue telling 
> me how it jumps to main??
The main function is started by a C-library thread, see the ecos documentation:
http://ecos.sourceware.org/docs-latest/ref/c-library-startup.html
> thanks
> jet
> 
> 
>> From: "jiang jet" <jetjiang@hotmail.com>
>> To: ecos-discuss@ecos.sourceware.org
>> Subject: [ECOS] question about twothreads.c
>> Date: Thu, 14 Dec 2006 16:12:11 +0800
>>
>> hi,all
>>   I am porting ecos to one mips board, and it seems to be working now( 
>> I use some testcase to test it,work correctly).
>>   and then I use /example/twothreads.c to have a test, the program 
>> doesn't work:(,  I see the source code in twothreads.c ,the entry code 
>> is "cyg_user_start", and I modified it to be "cyg_start", then the 
>> program can go on,but it seems that the threads don't work at all...
>>   question 1) I wonder what's the difference between "cyg_user_start" 
>> and "cyg_start", or between "cyg_start" and "main",or between 
>> "cyg_user_start" and "main"???
>>   question 2) In other test case such as clocktruth.cxx, i see after 
>> the thread is resumed, then use Cyg_scheduler::start() to make the 
>> threads become schedled, but in twothreads.c there is no this rutine, 
>> how are these thread scheduled??
>>
>> thanks in advance for any answer and insight
>> jet
>>
>> _________________________________________________________________
>> 免费下载 MSN Explorer:   http://explorer.msn.com/lccn
>>
>>
>> -- 
>> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>>
> 
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn 
> 

-- 
Jürgen Lambrecht
Diksmuidse Heerweg 338
8200 Sint-Andries
Tel: +32 (0)50 842901
GSM: +32 (0)476 313389

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


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