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 > '/io...@0xf0000000/reg 0xf0000000 0x01000000' -o '/iobus/p...@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