misc: Ensure stacks are always aligned with the native pointer size.

Change-Id: Ie7efae914dcb43be98bbb71bae9b765b2d87d817
This commit is contained in:
Solomon Peachy 2025-09-05 19:42:00 -04:00
parent 695698b918
commit 16c9ef64b0
8 changed files with 9 additions and 9 deletions

View file

@ -25,7 +25,7 @@
#include "pca9555.h"
static struct semaphore pca9555_sem;
static char pca9555_thread_stack[DEFAULT_STACK_SIZE];
static long pca9555_thread_stack[DEFAULT_STACK_SIZE/sizeof(long)];
volatile unsigned short pca9555_in_ports;
void INT_GPIO1(void)

View file

@ -195,7 +195,7 @@ unsigned short pmu_read_adc(const struct pmu_adc_channel *ch)
*/
#define Q_EINT 0
static char pmu_thread_stack[DEFAULT_STACK_SIZE/2];
static long pmu_thread_stack[DEFAULT_STACK_SIZE/2/sizeof(long)];
static struct event_queue pmu_queue;
static unsigned char ints_msk[6];

View file

@ -163,7 +163,7 @@ unsigned short pmu_read_adc(const struct pmu_adc_channel *ch)
*/
#define Q_EINT 0
static char pmu_thread_stack[DEFAULT_STACK_SIZE/2];
static long pmu_thread_stack[DEFAULT_STACK_SIZE/2/sizeof(long)];
static struct event_queue pmu_queue;
static unsigned char ints_msk[2];

View file

@ -162,7 +162,7 @@ unsigned short pmu_read_adc(const struct pmu_adc_channel *ch)
*/
#define Q_EINT 0
static char pmu_thread_stack[DEFAULT_STACK_SIZE/2];
static long pmu_thread_stack[DEFAULT_STACK_SIZE/2/sizeof(long)];
static struct event_queue pmu_queue;
static unsigned char ints_msk[3];