Re: [PATCH] i386: fix stack alignment for signal handlers

From: J.A. Magallon
Date: Wed Sep 14 2005 - 15:14:56 EST



On 09.14, Markus F.X.J. Oberhumer wrote:
...
>
> #include <stdio.h>
> #include <signal.h>
> #include <unistd.h>
> #include <assert.h>
>
> typedef struct { double x,y; } Aligned16 __attribute__((__aligned__(16)));
>
> void *saved_esp;
> void handler(int unused) {
> Aligned16 a;
> assert(__alignof(a) >= 16),

errr... assert(__alignof(a) < 16), ???


--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
Mandriva Linux release 2006.0 (Cooker) for i586
Linux 2.6.13-jam4 (gcc 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0))


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/