summaryrefslogtreecommitdiff
path: root/arch/um/include
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2011-04-14 22:22:17 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-04-14 23:06:56 (GMT)
commit6d56dad3ae070511e59792a62f27b2394cc936bc (patch)
tree53b4ae9bea67ae24983858eeb4e9c6dfd7fd7d60 /arch/um/include
parented5afeaf422202485bbebc7e911f13b2a6be2666 (diff)
downloadlinux-6d56dad3ae070511e59792a62f27b2394cc936bc.tar.xz
um: fix call tracer and bug handler
Commit 1de1502c ("x86, um: now we can get rid of trivial uml headers") removed accidentally bug.h which broke UML's call tracer and bug handler. Without asm-generic/bug.h UML uses BUG() from arch/x86/ which makes use of ud2. UML cannot use ud2, it raises SIGILL in user mode. As UML has a different stack for handling signals the call trace will be cut off. Signed-off-by: Richard Weinberger <richard@nod.at> Reported-by: Sergei Trofimovich <slyich@gmail.com> Tested-by: Sergei Trofimovich <slyich@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r--arch/um/include/asm/bug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/um/include/asm/bug.h b/arch/um/include/asm/bug.h
new file mode 100644
index 0000000..9e33b86
--- /dev/null
+++ b/arch/um/include/asm/bug.h
@@ -0,0 +1,6 @@
+#ifndef __UM_BUG_H
+#define __UM_BUG_H
+
+#include <asm-generic/bug.h>
+
+#endif