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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux