sys/*: use DEBUG_EXTRA_STACKSIZE for debug stacks
This commit is contained in:
parent
53c1392d4d
commit
28ae0c97cd
@ -47,14 +47,10 @@
|
|||||||
#define ENABLE_DEBUG 0
|
#define ENABLE_DEBUG 0
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
|
||||||
static char _stack[GNRC_IPV6_STACK_SIZE + THREAD_EXTRA_STACKSIZE_PRINTF];
|
|
||||||
#else
|
|
||||||
static char _stack[GNRC_IPV6_STACK_SIZE];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define _MAX_L2_ADDR_LEN (8U)
|
#define _MAX_L2_ADDR_LEN (8U)
|
||||||
|
|
||||||
|
static char _stack[GNRC_IPV6_STACK_SIZE + DEBUG_EXTRA_STACKSIZE];
|
||||||
|
|
||||||
#ifdef MODULE_FIB
|
#ifdef MODULE_FIB
|
||||||
/**
|
/**
|
||||||
* @brief buffer to store the entries in the IPv6 forwarding table
|
* @brief buffer to store the entries in the IPv6 forwarding table
|
||||||
|
|||||||
@ -32,12 +32,7 @@
|
|||||||
|
|
||||||
static kernel_pid_t _pid = KERNEL_PID_UNDEF;
|
static kernel_pid_t _pid = KERNEL_PID_UNDEF;
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
static char _stack[GNRC_SIXLOWPAN_STACK_SIZE + DEBUG_EXTRA_STACKSIZE];
|
||||||
static char _stack[GNRC_SIXLOWPAN_STACK_SIZE + THREAD_EXTRA_STACKSIZE_PRINTF];
|
|
||||||
#else
|
|
||||||
static char _stack[GNRC_SIXLOWPAN_STACK_SIZE];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* handles GNRC_NETAPI_MSG_TYPE_RCV commands */
|
/* handles GNRC_NETAPI_MSG_TYPE_RCV commands */
|
||||||
static void _receive(gnrc_pktsnip_t *pkt);
|
static void _receive(gnrc_pktsnip_t *pkt);
|
||||||
|
|||||||
@ -42,11 +42,7 @@ static msg_t _eventloop_msg_queue[TCP_EVENTLOOP_MSG_QUEUE_SIZE];
|
|||||||
/**
|
/**
|
||||||
* @brief Allocate memory for GNRC TCP thread stack.
|
* @brief Allocate memory for GNRC TCP thread stack.
|
||||||
*/
|
*/
|
||||||
#if ENABLE_DEBUG
|
static char _stack[TCP_EVENTLOOP_STACK_SIZE + DEBUG_EXTRA_STACKSIZE];
|
||||||
static char _stack[TCP_EVENTLOOP_STACK_SIZE + THREAD_EXTRA_STACKSIZE_PRINTF];
|
|
||||||
#else
|
|
||||||
static char _stack[TCP_EVENTLOOP_STACK_SIZE];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Central evtimer for gnrc_tcp event loop
|
* @brief Central evtimer for gnrc_tcp event loop
|
||||||
|
|||||||
@ -42,11 +42,7 @@ static kernel_pid_t _pid = KERNEL_PID_UNDEF;
|
|||||||
/**
|
/**
|
||||||
* @brief Allocate memory for the UDP thread's stack
|
* @brief Allocate memory for the UDP thread's stack
|
||||||
*/
|
*/
|
||||||
#if ENABLE_DEBUG
|
static char _stack[GNRC_UDP_STACK_SIZE + DEBUG_EXTRA_STACKSIZE];
|
||||||
static char _stack[GNRC_UDP_STACK_SIZE + THREAD_EXTRA_STACKSIZE_PRINTF];
|
|
||||||
#else
|
|
||||||
static char _stack[GNRC_UDP_STACK_SIZE];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Calculate the UDP checksum dependent on the network protocol
|
* @brief Calculate the UDP checksum dependent on the network protocol
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user