Apply __stack tag to align bluetooth defined fiber stacks

Bluetooth fibers must have their stacks properly aligned.

Change-Id: Id46b376abb46400c563050b4c8393ab3983ff045
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2015-06-03 10:35:58 -04:00 committed by Anas Nashif
commit 6059e0e2e1
6 changed files with 9 additions and 4 deletions

View file

@ -31,6 +31,7 @@
*/
#include <nanokernel.h>
#include <arch/cpu.h>
#include <toolchain.h>
#include <string.h>
#include <errno.h>

View file

@ -31,6 +31,7 @@
*/
#include <nanokernel.h>
#include <arch/cpu.h>
#include <toolchain.h>
#include <string.h>
#include <errno.h>

View file

@ -72,7 +72,7 @@ struct bt_conn {
uint8_t state;
char tx_stack[BT_CONN_TX_STACK_SIZE];
char __stack tx_stack[BT_CONN_TX_STACK_SIZE];
};
/* Process incoming data for a connection */

View file

@ -31,6 +31,7 @@
*/
#include <nanokernel.h>
#include <arch/cpu.h>
#include <toolchain.h>
#include <string.h>
#include <stdio.h>
@ -65,9 +66,9 @@
#define CMD_TX_STACK_SIZE 256
#endif
static char rx_fiber_stack[RX_STACK_SIZE];
static char cmd_rx_fiber_stack[CMD_RX_STACK_SIZE];
static char cmd_tx_fiber_stack[CMD_TX_STACK_SIZE];
static char __stack rx_fiber_stack[RX_STACK_SIZE];
static char __stack cmd_rx_fiber_stack[CMD_RX_STACK_SIZE];
static char __stack cmd_tx_fiber_stack[CMD_TX_STACK_SIZE];
#if defined(CONFIG_BLUETOOTH_DEBUG)
static nano_context_id_t cmd_rx_fiber_id;

View file

@ -31,6 +31,7 @@
*/
#include <nanokernel.h>
#include <arch/cpu.h>
#include <toolchain.h>
#include <string.h>
#include <errno.h>

View file

@ -34,6 +34,7 @@
*/
#include <nanokernel.h>
#include <arch/cpu.h>
#include <stddef.h>
#include <errno.h>
#include <string.h>