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:
parent
b4e7a4fdbe
commit
6059e0e2e1
6 changed files with 9 additions and 4 deletions
|
@ -31,6 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
|
#include <arch/cpu.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
|
#include <arch/cpu.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -72,7 +72,7 @@ struct bt_conn {
|
||||||
|
|
||||||
uint8_t state;
|
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 */
|
/* Process incoming data for a connection */
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
|
#include <arch/cpu.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -65,9 +66,9 @@
|
||||||
#define CMD_TX_STACK_SIZE 256
|
#define CMD_TX_STACK_SIZE 256
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char rx_fiber_stack[RX_STACK_SIZE];
|
static char __stack rx_fiber_stack[RX_STACK_SIZE];
|
||||||
static char cmd_rx_fiber_stack[CMD_RX_STACK_SIZE];
|
static char __stack cmd_rx_fiber_stack[CMD_RX_STACK_SIZE];
|
||||||
static char cmd_tx_fiber_stack[CMD_TX_STACK_SIZE];
|
static char __stack cmd_tx_fiber_stack[CMD_TX_STACK_SIZE];
|
||||||
|
|
||||||
#if defined(CONFIG_BLUETOOTH_DEBUG)
|
#if defined(CONFIG_BLUETOOTH_DEBUG)
|
||||||
static nano_context_id_t cmd_rx_fiber_id;
|
static nano_context_id_t cmd_rx_fiber_id;
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
|
#include <arch/cpu.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
|
#include <arch/cpu.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue