This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / um / os-Linux / sys-x86_64 / signal.c
diff --git a/arch/um/os-Linux/sys-x86_64/signal.c b/arch/um/os-Linux/sys-x86_64/signal.c
new file mode 100644 (file)
index 0000000..3f369e5
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * Copyright (C) 2006 Jeff Dike (jdike@addtoit.com)
+ * Licensed under the GPL
+ */
+
+#include <signal.h>
+
+extern void (*handlers[])(int sig, struct sigcontext *sc);
+
+void hard_handler(int sig)
+{
+       struct ucontext *uc;
+       asm("movq %%rdx, %0" : "=r" (uc));
+
+       (*handlers[sig])(sig, (struct sigcontext *) &uc->uc_mcontext);
+}