diff options
| author | David Howells <dhowells@redhat.com> | 2012-10-09 04:47:37 -0400 |
|---|---|---|
| committer | David Howells <dhowells@redhat.com> | 2012-10-09 04:47:37 -0400 |
| commit | 0a9426df1858f71ac84eb7eef500b4247de5e3bb (patch) | |
| tree | 82983766b53c18f5da8602f16ed0b67ae2a957fb | |
| parent | 9e2d8656f5e8aa214e66b462680cf86b210b74a8 (diff) | |
UAPI: (Scripted) Disintegrate arch/sh/include/asm
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
32 files changed, 173 insertions, 153 deletions
diff --git a/arch/sh/include/asm/Kbuild b/arch/sh/include/asm/Kbuild index 7b673ddcd555..f734b4478fa2 100644 --- a/arch/sh/include/asm/Kbuild +++ b/arch/sh/include/asm/Kbuild | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | include include/asm-generic/Kbuild.asm | ||
| 2 | 1 | ||
| 3 | generic-y += bitsperlong.h | 2 | generic-y += bitsperlong.h |
| 4 | generic-y += cputime.h | 3 | generic-y += cputime.h |
| @@ -33,13 +32,3 @@ generic-y += termbits.h | |||
| 33 | generic-y += termios.h | 32 | generic-y += termios.h |
| 34 | generic-y += ucontext.h | 33 | generic-y += ucontext.h |
| 35 | generic-y += xor.h | 34 | generic-y += xor.h |
| 36 | |||
| 37 | header-y += cachectl.h | ||
| 38 | header-y += cpu-features.h | ||
| 39 | header-y += hw_breakpoint.h | ||
| 40 | header-y += posix_types_32.h | ||
| 41 | header-y += posix_types_64.h | ||
| 42 | header-y += ptrace_32.h | ||
| 43 | header-y += ptrace_64.h | ||
| 44 | header-y += unistd_32.h | ||
| 45 | header-y += unistd_64.h | ||
diff --git a/arch/sh/include/asm/hw_breakpoint.h b/arch/sh/include/asm/hw_breakpoint.h index 89890f61a7b9..ec9ad593c3da 100644 --- a/arch/sh/include/asm/hw_breakpoint.h +++ b/arch/sh/include/asm/hw_breakpoint.h | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | #ifndef __ASM_SH_HW_BREAKPOINT_H | 1 | #ifndef __ASM_SH_HW_BREAKPOINT_H |
| 2 | #define __ASM_SH_HW_BREAKPOINT_H | 2 | #define __ASM_SH_HW_BREAKPOINT_H |
| 3 | 3 | ||
| 4 | #ifdef __KERNEL__ | 4 | #include <uapi/asm/hw_breakpoint.h> |
| 5 | |||
| 5 | #define __ARCH_HW_BREAKPOINT_H | 6 | #define __ARCH_HW_BREAKPOINT_H |
| 6 | 7 | ||
| 7 | #include <linux/kdebug.h> | 8 | #include <linux/kdebug.h> |
| @@ -66,5 +67,4 @@ extern int register_sh_ubc(struct sh_ubc *); | |||
| 66 | 67 | ||
| 67 | extern struct pmu perf_ops_bp; | 68 | extern struct pmu perf_ops_bp; |
| 68 | 69 | ||
| 69 | #endif /* __KERNEL__ */ | ||
| 70 | #endif /* __ASM_SH_HW_BREAKPOINT_H */ | 70 | #endif /* __ASM_SH_HW_BREAKPOINT_H */ |
diff --git a/arch/sh/include/asm/posix_types.h b/arch/sh/include/asm/posix_types.h index f08449bcbde7..1aa781079b1e 100644 --- a/arch/sh/include/asm/posix_types.h +++ b/arch/sh/include/asm/posix_types.h | |||
| @@ -1,13 +1,5 @@ | |||
| 1 | #ifdef __KERNEL__ | ||
| 2 | # ifdef CONFIG_SUPERH32 | 1 | # ifdef CONFIG_SUPERH32 |
| 3 | # include <asm/posix_types_32.h> | 2 | # include <asm/posix_types_32.h> |
| 4 | # else | 3 | # else |
| 5 | # include <asm/posix_types_64.h> | 4 | # include <asm/posix_types_64.h> |
| 6 | # endif | 5 | # endif |
| 7 | #else | ||
| 8 | # ifdef __SH5__ | ||
| 9 | # include <asm/posix_types_64.h> | ||
| 10 | # else | ||
| 11 | # include <asm/posix_types_32.h> | ||
| 12 | # endif | ||
| 13 | #endif /* __KERNEL__ */ | ||
diff --git a/arch/sh/include/asm/ptrace.h b/arch/sh/include/asm/ptrace.h index a4a38dff997a..2506c7db76b7 100644 --- a/arch/sh/include/asm/ptrace.h +++ b/arch/sh/include/asm/ptrace.h | |||
| @@ -1,42 +1,16 @@ | |||
| 1 | #ifndef __ASM_SH_PTRACE_H | ||
| 2 | #define __ASM_SH_PTRACE_H | ||
| 3 | |||
| 4 | /* | 1 | /* |
| 5 | * Copyright (C) 1999, 2000 Niibe Yutaka | 2 | * Copyright (C) 1999, 2000 Niibe Yutaka |
| 6 | */ | 3 | */ |
| 4 | #ifndef __ASM_SH_PTRACE_H | ||
| 5 | #define __ASM_SH_PTRACE_H | ||
| 7 | 6 | ||
| 8 | #define PTRACE_GETREGS 12 /* General registers */ | ||
| 9 | #define PTRACE_SETREGS 13 | ||
| 10 | |||
| 11 | #define PTRACE_GETFPREGS 14 /* FPU registers */ | ||
| 12 | #define PTRACE_SETFPREGS 15 | ||
| 13 | |||
| 14 | #define PTRACE_GETFDPIC 31 /* get the ELF fdpic loadmap address */ | ||
| 15 | |||
| 16 | #define PTRACE_GETFDPIC_EXEC 0 /* [addr] request the executable loadmap */ | ||
| 17 | #define PTRACE_GETFDPIC_INTERP 1 /* [addr] request the interpreter loadmap */ | ||
| 18 | |||
| 19 | #define PTRACE_GETDSPREGS 55 /* DSP registers */ | ||
| 20 | #define PTRACE_SETDSPREGS 56 | ||
| 21 | |||
| 22 | #define PT_TEXT_END_ADDR 240 | ||
| 23 | #define PT_TEXT_ADDR 244 /* &(struct user)->start_code */ | ||
| 24 | #define PT_DATA_ADDR 248 /* &(struct user)->start_data */ | ||
| 25 | #define PT_TEXT_LEN 252 | ||
| 26 | |||
| 27 | #if defined(__SH5__) || defined(CONFIG_CPU_SH5) | ||
| 28 | #include <asm/ptrace_64.h> | ||
| 29 | #else | ||
| 30 | #include <asm/ptrace_32.h> | ||
| 31 | #endif | ||
| 32 | |||
| 33 | #ifdef __KERNEL__ | ||
| 34 | 7 | ||
| 35 | #include <linux/stringify.h> | 8 | #include <linux/stringify.h> |
| 36 | #include <linux/stddef.h> | 9 | #include <linux/stddef.h> |
| 37 | #include <linux/thread_info.h> | 10 | #include <linux/thread_info.h> |
| 38 | #include <asm/addrspace.h> | 11 | #include <asm/addrspace.h> |
| 39 | #include <asm/page.h> | 12 | #include <asm/page.h> |
| 13 | #include <uapi/asm/ptrace.h> | ||
| 40 | 14 | ||
| 41 | #define user_mode(regs) (((regs)->sr & 0x40000000)==0) | 15 | #define user_mode(regs) (((regs)->sr & 0x40000000)==0) |
| 42 | #define kernel_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15]) | 16 | #define kernel_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15]) |
| @@ -140,6 +114,4 @@ static inline unsigned long profile_pc(struct pt_regs *regs) | |||
| 140 | #define profile_pc profile_pc | 114 | #define profile_pc profile_pc |
| 141 | 115 | ||
| 142 | #include <asm-generic/ptrace.h> | 116 | #include <asm-generic/ptrace.h> |
| 143 | #endif /* __KERNEL__ */ | ||
| 144 | |||
| 145 | #endif /* __ASM_SH_PTRACE_H */ | 117 | #endif /* __ASM_SH_PTRACE_H */ |
diff --git a/arch/sh/include/asm/ptrace_32.h b/arch/sh/include/asm/ptrace_32.h index 2d3e906aa722..1dd4480c5363 100644 --- a/arch/sh/include/asm/ptrace_32.h +++ b/arch/sh/include/asm/ptrace_32.h | |||
| @@ -1,79 +1,8 @@ | |||
| 1 | #ifndef __ASM_SH_PTRACE_32_H | 1 | #ifndef __ASM_SH_PTRACE_32_H |
| 2 | #define __ASM_SH_PTRACE_32_H | 2 | #define __ASM_SH_PTRACE_32_H |
| 3 | 3 | ||
| 4 | /* | 4 | #include <uapi/asm/ptrace_32.h> |
| 5 | * GCC defines register number like this: | ||
| 6 | * ----------------------------- | ||
| 7 | * 0 - 15 are integer registers | ||
| 8 | * 17 - 22 are control/special registers | ||
| 9 | * 24 - 39 fp registers | ||
| 10 | * 40 - 47 xd registers | ||
| 11 | * 48 - fpscr register | ||
| 12 | * ----------------------------- | ||
| 13 | * | ||
| 14 | * We follows above, except: | ||
| 15 | * 16 --- program counter (PC) | ||
| 16 | |||
