diff options
author | Aurelien Jacquiot <a-jacquiot@ti.com> | 2011-10-04 11:04:34 -0400 |
---|---|---|
committer | Mark Salter <msalter@redhat.com> | 2011-10-06 19:47:46 -0400 |
commit | 03a347558749caaab482f34410ae5d27e893db89 (patch) | |
tree | 4a6e2017f0afb5b82eb31d05ce2a2b539f453827 /arch/c6x/include | |
parent | 687b12baecae2aa3af9df05c12b90d8e9ef21fa7 (diff) |
C6X: signal management
Original port to early 2.6 kernel using TI COFF toolchain.
Brought up to date by Mark Salter <msalter@redhat.com>
Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com>
Signed-off-by: Mark Salter <msalter@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/c6x/include')
-rw-r--r-- | arch/c6x/include/asm/sigcontext.h | 80 | ||||
-rw-r--r-- | arch/c6x/include/asm/signal.h | 17 |
2 files changed, 97 insertions, 0 deletions
diff --git a/arch/c6x/include/asm/sigcontext.h b/arch/c6x/include/asm/sigcontext.h new file mode 100644 index 000000000000..eb702f39cde7 --- /dev/null +++ b/arch/c6x/include/asm/sigcontext.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | * Port on Texas Instruments TMS320C6x architecture | ||
3 | * | ||
4 | * Copyright (C) 2004, 2009 Texas Instruments Incorporated | ||
5 | * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com) | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef _ASM_C6X_SIGCONTEXT_H | ||
12 | #define _ASM_C6X_SIGCONTEXT_H | ||
13 | |||
14 | |||
15 | struct sigcontext { | ||
16 | unsigned long sc_mask; /* old sigmask */ | ||
17 | unsigned long sc_sp; /* old user stack pointer */ | ||
18 | |||
19 | unsigned long sc_a4; | ||
20 | unsigned long sc_b4; | ||
21 | unsigned long sc_a6; | ||
22 | unsigned long sc_b6; | ||
23 | unsigned long sc_a8; | ||
24 | unsigned long sc_b8; | ||
25 | |||
26 | unsigned long sc_a0; | ||
27 | unsigned long sc_a1; | ||
28 | unsigned long sc_a2; | ||
29 | unsigned long sc_a3; | ||
30 | unsigned long sc_a5; | ||
31 | unsigned long sc_a7; | ||
32 | unsigned long sc_a9; | ||
33 | |||
34 | unsigned long sc_b0; | ||
35 | unsigned long sc_b1; | ||
36 | unsigned long sc_b2; | ||
37 | unsigned long sc_b3; | ||
38 | unsigned long sc_b5; | ||
39 | unsigned long sc_b7; | ||
40 | unsigned long sc_b9; | ||
41 | |||
42 | unsigned long sc_a16; | ||
43 | unsigned long sc_a17; | ||
44 | unsigned long sc_a18; | ||
45 | unsigned long sc_a19; | ||
46 | unsigned long sc_a20; | ||
47 | unsigned long sc_a21; | ||
48 | unsigned long sc_a22; | ||
49 | unsigned long sc_a23; | ||
50 | unsigned long sc_a24; | ||
51 | unsigned long sc_a25; | ||
52 | unsigned long sc_a26; | ||
53 | unsigned long sc_a27; | ||
54 | unsigned long sc_a28; | ||
55 | unsigned long sc_a29; | ||
56 | unsigned long sc_a30; | ||
57 | unsigned long sc_a31; | ||
58 | |||
59 | unsigned long sc_b16; | ||
60 | unsigned long sc_b17; | ||
61 | unsigned long sc_b18; | ||
62 | unsigned long sc_b19; | ||
63 | unsigned long sc_b20; | ||
64 | unsigned long sc_b21; | ||
65 | unsigned long sc_b22; | ||
66 | unsigned long sc_b23; | ||
67 | unsigned long sc_b24; | ||
68 | unsigned long sc_b25; | ||
69 | unsigned long sc_b26; | ||
70 | unsigned long sc_b27; | ||
71 | unsigned long sc_b28; | ||
72 | unsigned long sc_b29; | ||
73 | unsigned long sc_b30; | ||
74 | unsigned long sc_b31; | ||
75 | |||
76 | unsigned long sc_csr; | ||
77 | unsigned long sc_pc; | ||
78 | }; | ||
79 | |||
80 | #endif /* _ASM_C6X_SIGCONTEXT_H */ | ||
diff --git a/arch/c6x/include/asm/signal.h b/arch/c6x/include/asm/signal.h new file mode 100644 index 000000000000..f1cd870596a3 --- /dev/null +++ b/arch/c6x/include/asm/signal.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef _ASM_C6X_SIGNAL_H | ||
2 | #define _ASM_C6X_SIGNAL_H | ||
3 | |||
4 | #include <asm-generic/signal.h> | ||
5 | |||
6 | #ifndef __ASSEMBLY__ | ||
7 | #include <linux/linkage.h> | ||
8 | |||
9 | struct pt_regs; | ||
10 | |||
11 | extern asmlinkage int do_rt_sigreturn(struct pt_regs *regs); | ||
12 | extern asmlinkage void do_notify_resume(struct pt_regs *regs, | ||
13 | u32 thread_info_flags, | ||
14 | int syscall); | ||
15 | #endif | ||
16 | |||
17 | #endif /* _ASM_C6X_SIGNAL_H */ | ||