[PATCH] uml: add missing __volatile__
authorJeff Dike <jdike@addtoit.com>
Wed, 19 Apr 2006 05:21:44 +0000 (22:21 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 19 Apr 2006 16:13:51 +0000 (09:13 -0700)
commitfb30d64568fd8f6a21afef987f11852a109723da
treef5cb57a46f237bb3500743d3421d2ec95849e38a
parent966a082f80a073af1564c5ed6313ef2f0587dde3
[PATCH] uml: add missing __volatile__

We were missing __volatile__ on some bits of asm in the segfault handlers.
On x86_64, this was messing up the move from %rdx to uc because that was
moved to after the GET_FAULTINFO_FROM_SC, which changed %rdx.

Also changed the other bit of asm and the one in the i386 handler to
prevent any similar occurrences.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/sys-i386/stub_segv.c
arch/um/sys-x86_64/stub_segv.c