This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Unable to create thread with stack on the PowerPC Simulator
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Vimala Bauer <vimala at vimala dot de>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 10 Jan 2010 22:36:37 +0000
- Subject: [ECOS] Re: Unable to create thread with stack on the PowerPC Simulator
- References: <4B49F608.5060803@vimala.de>
Hi Vimala
Vimala Bauer wrote:
> I have tried to run a C program, which creates 4 threads each with stack
> size 100000 bytes,
> on the PowerPC simulator (the program listing is given below).
> I get the following error message:
>
> "ERROR; return code from pthread_create() is 11"
>
> When I use a stack size of 5000 bytes, it works. It looks like there is
> not enough memory
> available. How do I fix it? Does this have something to do with the
> following macro included
> in the .gdbinit file?
>
> define psim target sim -o '/iobus/pal@0xf0001000/reg 0xf0001000
> 32' rbreak cyg_test_exit rbreak cyg_assert_fail end
>
> Do I have to make modifications here?
The typical GDB command for using PSIM with eCos is as follows:
> target sim -o '/#address-cells 1' -o '/openprom/init/register/pc 0x100' -o '/iobus@0xf0000000/reg 0xf0000000 0x01000000' -o '/iobus/pal@0xf0001000/reg 0xf0001000 32'
The eCos memory layout for PSIM assumes 1MB RAM.
I hope this helps...
John Dallaway
eCos maintainer
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss