Problem with stack sizes

Ingolf Steinbach Ingolf.Steinbach at jena-optronik.de
Fri Dec 8 09:27:29 CST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

in my application, I use 4 tasks:
 - INIT with a stack size of RTEMS_MINIMUM_STACK_SIZE,
 - T1 with a stack size of 2*RTEMS_MINIMUM_STACK_SIZE,
 - T2 with a stack size of 10*RTEMS_MINIMUM_STACK_SIZE, and
 - T3 with a stack size of RTEMS_MINIMUM_STACK_SIZE.

Thus, I have set
#define CONFIGURE_EXTRA_TASK_STACKS (10*RTEMS_MINIMUM_STACK_SIZE)
in my RTEMS configuration.

The calls to rtems_task_create() succeed. However, the application
crashes. (I'm quite confident that the stack sizes themselves are
ok.)

If I instead set
#define CONFIGURE_EXTRA_TASK_STACKS (11*RTEMS_MINIMUM_STACK_SIZE)
everything works as expected.

Could it be that using the "sharp" value for the extra task stacks
does not work because RTEMS uses different (i.e. larger) stack
sizes internally than those specified in rtems_task_create()?

If so, why do the calls to rtems_task_create() succeed nevertheless?

RTEMS-4.6.5 on leon2.

Cheers
    Ingolf
- --

Ingolf Steinbach       PGP:0x040DD527       Jena-Optronik GmbH
ingolf.steinbach at jena-optronik.de            ++49 3641 200-216
Fingerprint: 33BE B2C6 5F42 5C24 4091 F0AD 3EE8 1082 040D D527
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFeYRhPugQggQN1ScRAk9CAJsE7M1aIro8Nsbcv5ZtMewnjZPAyQCfQCi3
3lSx+oQAheR5qt39G3HR+3s=
=vKU2
-----END PGP SIGNATURE-----



More information about the rtems-users mailing list