]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml skas0: stop gcc's insanity
authorJeff Dike <jdike@addtoit.com>
Sun, 18 Dec 2005 16:50:39 +0000 (17:50 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 18 Dec 2005 19:19:44 +0000 (11:19 -0800)
commit13d0eb6c4a7c99928cca8c5586c4951499a49bf7
treea3294a2c1f14ff4ebc9d645189ad12070529a639
parent5bc9d5456d2454015acd2672c0f386e6f428efa4
[PATCH] uml skas0: stop gcc's insanity

With Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

UML skas0 stub has been miscompiling for many people (incidentally not
the authors), depending on the used GCC versions.

I think (and testing on some GCC versions shows) this patch avoids the
fundamental issue which is behind this, namely gcc using the stack when
we have just replaced it, behind gcc's back.  The remapping and storage
of the return value is hidden in a blob of asm, hopefully giving gcc no
room for creativity.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/include/sysdep-i386/stub.h
arch/um/include/sysdep-x86_64/stub.h
arch/um/kernel/skas/clone.c