cpu/lpc2387: increase 'pthread_reaper' stacksize

At the time of configuration, the pthread-reaper uses '164' bytes of
stack when 'idle' stack is only '160'. By having double it gives some
margin.

ps
        pid | name                 | state    Q | pri | stack  ( used) | base addr  | current
          1 | idle                 | pending  Q |  15 |    160 (  128) | 0x4000007c | 0x4000009c
          2 | main                 | running  Q |   7 |   2560 ( 1232) | 0x4000011c | 0x4000095c
          3 | pthread-reaper       | bl rx    _ |   0 |    320 (  164) | 0x40000bac | 0x40000c48
            | SUM                  |            |     |   3040 ( 1524)
This commit is contained in:
Gaëtan Harter 2019-09-25 15:37:24 +02:00 committed by JulianHolzwarth
parent a889e500f0
commit 1e561e9f63

View File

@ -52,6 +52,15 @@ extern "C" {
#define THREAD_STACKSIZE_IDLE (160)
/** @} */
/**
* @name Pthread configuration
* @{
*/
/* The idle stack of '160' is not enough to do the 'msg_receive'.
* It currently used '164' bytes. */
#define CONFIG_PTHREAD_REAPER_BASE_STACKSIZE (2*THREAD_STACKSIZE_IDLE)
/** @} */
/**
* @name Compiler specifics
* @{