net: Ensure stacks are properly aligned

Applies '__stack' tag where necessary to ensure that stacks are
properly aligned.

Change-Id: Ibbce5d4656f69db6c9b5006d15e0a0eb231c7af4
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2016-01-27 15:33:00 -05:00 committed by Anas Nashif
commit f23c498018
2 changed files with 6 additions and 6 deletions

View file

@ -68,9 +68,9 @@ void net_context_set_receiver_registered(struct net_context *context);
* FIXME: stack size needs fine-tuning
*/
#define STACKSIZE_UNIT 1024
static char __noinit rx_fiber_stack[STACKSIZE_UNIT * 1];
static char __noinit tx_fiber_stack[STACKSIZE_UNIT * 1];
static char __noinit timer_fiber_stack[STACKSIZE_UNIT * 3 / 2];
static char __noinit __stack rx_fiber_stack[STACKSIZE_UNIT * 1];
static char __noinit __stack tx_fiber_stack[STACKSIZE_UNIT * 1];
static char __noinit __stack timer_fiber_stack[STACKSIZE_UNIT * 3 / 2];
static struct net_dev {
/* Queue for incoming packets from driver */

View file

@ -43,13 +43,13 @@
* FIXME: stack size needs fine-tuning
*/
#define STACKSIZE_UNIT 1024
static char __noinit rx_fiber_stack[STACKSIZE_UNIT * 1];
static char __noinit __stack rx_fiber_stack[STACKSIZE_UNIT * 1];
#if NET_802154_TX_STACK_SIZE
/* The 802.15.4 loopback test app (test_15_4) needs bigger stack. */
static char __noinit tx_fiber_stack[NET_802154_TX_STACK_SIZE];
static char __noinit __stack tx_fiber_stack[NET_802154_TX_STACK_SIZE];
#else
static char __noinit tx_fiber_stack[STACKSIZE_UNIT * 3 / 2];
static char __noinit __stack tx_fiber_stack[STACKSIZE_UNIT * 3 / 2];
#endif
/* Queue for incoming packets from hw driver */