[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)
commit5b7b15afee89d6940482259b54d0864b7b2302b0
treea3294a2c1f14ff4ebc9d645189ad12070529a639
parent76c842d8f8096e2c98ff9ebe1db861363ff254e5
[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