From 0c85d7906646524a75121867ba02dd1bb809cd21 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 16 Feb 2010 19:21:42 +0000 Subject: Tentative fix for bug 2952961. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1619 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/SIMIA32/chcore.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'os/ports/GCC/SIMIA32') diff --git a/os/ports/GCC/SIMIA32/chcore.h b/os/ports/GCC/SIMIA32/chcore.h index a0e26bf29..114e9ef43 100644 --- a/os/ports/GCC/SIMIA32/chcore.h +++ b/os/ports/GCC/SIMIA32/chcore.h @@ -36,9 +36,11 @@ #define CH_ARCHITECTURE_NAME "x86 Simulator" /** - * 32 bit stack alignment. + * 16 bytes stack alignment. */ -typedef uint32_t stkalign_t; +typedef struct { + uint8_t a[16]; +} stkalign_t __attribute__((aligned(16))); /** * Generic x86 register. -- cgit v1.2.3