This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: a problem with thread
shobhan wrote:
>
> Hi,
> Following is my test case
>
> cyg_handle_t flowThreadId;
> cyg_thread flowThread;
> char flowThreadStack[4096];
>
> void flowInit ( void )
> {
> cyg_thread_create(4, flowThreadEntryPoint, (cyg_addrword_t) 0,
> "Flow thread", (void *) flowThreadStack, (4096*2),
> &flowThreadId, &flowThread);
[snip]
4096 * 2 ? That should be just 4096.
>
> In Thread entry poing i simply forward the buffer to parsePacket routine....
>
> I could not figure out where the mistake is...
If the above isn't the problem, then you should have a go at debugging the
kernel structures, particularly seeing if the thread queue for the message
box is valid.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine