aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/sysdep-x86_64/signal.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/sysdep-x86_64/signal.h')
-rw-r--r--arch/um/include/sysdep-x86_64/signal.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/um/include/sysdep-x86_64/signal.h b/arch/um/include/sysdep-x86_64/signal.h
new file mode 100644
index 000000000000..e5e52756fab4
--- /dev/null
+++ b/arch/um/include/sysdep-x86_64/signal.h
@@ -0,0 +1,27 @@
1/*
2 * Copyright (C) 2004 PathScale, Inc
3 * Licensed under the GPL
4 */
5
6#ifndef __X86_64_SIGNAL_H_
7#define __X86_64_SIGNAL_H_
8
9#define ARCH_GET_SIGCONTEXT(sc, sig_addr) \
10 do { \
11 struct ucontext *__uc; \
12 asm("movq %%rdx, %0" : "=r" (__uc)); \
13 sc = (struct sigcontext *) &__uc->uc_mcontext; \
14 } while(0)
15
16#endif
17
18/*
19 * Overrides for Emacs so that we follow Linus's tabbing style.
20 * Emacs will notice this stuff at the end of the file and automatically
21 * adjust the settings for this buffer only. This must remain at the end
22 * of the file.
23 * ---------------------------------------------------------------------------
24 * Local variables:
25 * c-file-style: "linux"
26 * End:
27 */