diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-14 01:48:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-14 01:48:06 +0000 |
commit | 6e55aca4994dc7b5114b659ba444577124d4762f (patch) | |
tree | 2f77f77db71d5209614ffe84c6a627827a376de2 /nuttx | |
parent | 1cb000c6f96d40ccbeb25069c1b939e915b79cba (diff) | |
download | px4-nuttx-6e55aca4994dc7b5114b659ba444577124d4762f.tar.gz px4-nuttx-6e55aca4994dc7b5114b659ba444577124d4762f.tar.bz2 px4-nuttx-6e55aca4994dc7b5114b659ba444577124d4762f.zip |
A big, hard-coded stack size was used in several places
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1986 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/ChangeLog | 5 | ||||
-rw-r--r-- | nuttx/Documentation/NuttX.html | 6 | ||||
-rw-r--r-- | nuttx/examples/ostest/cancel.c | 4 | ||||
-rw-r--r-- | nuttx/examples/ostest/mqueue.c | 6 | ||||
-rw-r--r-- | nuttx/examples/ostest/timedmqueue.c | 6 |
5 files changed, 17 insertions, 10 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 12c99f651..1ae0fd8ff 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -816,4 +816,7 @@ with more standard exec() functions, however, because (1) it returns and (2) it requires symbol table arguments. * lib/: Add fileno() - + * examples/ostest: Several of the tests used a big, hard-coded stack size + when creating test threads (16Kb stacksize). The stack size should + be controlled by the .config file or the OSTest won't work on platforms + with memory constraints. diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index 0f4459c15..a8a546ca0 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/Documentation/NuttX.html @@ -8,7 +8,7 @@ <tr align="center" bgcolor="#e4e4e4"> <td> <h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1> - <p>Last Updated: July 12, 2009</p> + <p>Last Updated: July 13, 2009</p> </td> </tr> </table> @@ -1489,6 +1489,10 @@ nuttx-0.4.10 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> with more standard exec() functions, however, because (1) it returns and (2) it requires symbol table arguments. * lib/: Add fileno() + * examples/ostest: Several of the tests used a big, hard-coded stack size + when creating test threads (16Kb stacksize). The stack size should + be controlled by the .config file or the OSTest won't work on platforms + with memory constraints. nuttx-0.4.10 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/nuttx/examples/ostest/cancel.c b/nuttx/examples/ostest/cancel.c index 193b2fbda..bf2d03615 100644 --- a/nuttx/examples/ostest/cancel.c +++ b/nuttx/examples/ostest/cancel.c @@ -1,7 +1,7 @@ /*********************************************************************** * examples/ostest/cancel.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -131,7 +131,7 @@ static void start_thread(pthread_t *waiter, int cancelable) printf("start_thread: pthread_attr_init failed, status=%d\n", status); } - status = pthread_attr_setstacksize(&attr, 16384); + status = pthread_attr_setstacksize(&attr, STACKSIZE); if (status != 0) { printf("start_thread: pthread_attr_setstacksize failed, status=%d\n", status); diff --git a/nuttx/examples/ostest/mqueue.c b/nuttx/examples/ostest/mqueue.c index cbebfd804..8c96d9cf4 100644 --- a/nuttx/examples/ostest/mqueue.c +++ b/nuttx/examples/ostest/mqueue.c @@ -1,7 +1,7 @@ /************************************************************************** * mqueue.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -296,7 +296,7 @@ void mqueue_test(void) printf("mqueue_test: pthread_attr_init failed, status=%d\n", status); } - status = pthread_attr_setstacksize(&attr, 16384); + status = pthread_attr_setstacksize(&attr, STACKSIZE); if (status != 0) { printf("mqueue_test: pthread_attr_setstacksize failed, status=%d\n", status); @@ -332,7 +332,7 @@ void mqueue_test(void) printf("mqueue_test: pthread_attr_init failed, status=%d\n", status); } - status = pthread_attr_setstacksize(&attr, 16384); + status = pthread_attr_setstacksize(&attr, STACKSIZE); if (status != 0) { printf("mqueue_test: pthread_attr_setstacksize failed, status=%d\n", status); diff --git a/nuttx/examples/ostest/timedmqueue.c b/nuttx/examples/ostest/timedmqueue.c index a25c05971..9c14ec414 100644 --- a/nuttx/examples/ostest/timedmqueue.c +++ b/nuttx/examples/ostest/timedmqueue.c @@ -1,7 +1,7 @@ /************************************************************************** * examples/ostest/mqueue.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -336,7 +336,7 @@ void timedmqueue_test(void) printf("timedmqueue_test: pthread_attr_init failed, status=%d\n", status); } - status = pthread_attr_setstacksize(&attr, 16384); + status = pthread_attr_setstacksize(&attr, STACKSIZE); if (status != 0) { printf("timedmqueue_test: pthread_attr_setstacksize failed, status=%d\n", status); @@ -366,7 +366,7 @@ void timedmqueue_test(void) printf("timedmqueue_test: pthread_attr_init failed, status=%d\n", status); } - status = pthread_attr_setstacksize(&attr, 16384); + status = pthread_attr_setstacksize(&attr, STACKSIZE); if (status != 0) { printf("timedmqueue_test: pthread_attr_setstacksize failed, status=%d\n", status); |