aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm
diff options
context:
space:
mode:
authorJonas Bonn <jonas@southpole.se>2012-10-13 01:38:37 -0400
committerJonas Bonn <jonas@southpole.se>2012-10-13 01:38:37 -0400
commit6257c5740e9f876f4097f6c67ec69576c23abb82 (patch)
tree79008492997dfa642be134eb4d84bb37fd1b28be /arch/openrisc/include/asm
parent4d7127dace8cf4b05eb7c8c8531fc204fbb195f4 (diff)
parent913c230200ceea66dda3fda325af8365b3fdc670 (diff)
Merge tag 'disintegrate-openrisc-20121009' of git://git.infradead.org/users/dhowells/linux-headers
UAPI Disintegration 2012-10-09 * tag 'disintegrate-openrisc-20121009' of git://git.infradead.org/users/dhowells/linux-headers: UAPI: (Scripted) Disintegrate arch/openrisc/include/asm
Diffstat (limited to 'arch/openrisc/include/asm')
-rw-r--r--arch/openrisc/include/asm/Kbuild2
-rw-r--r--arch/openrisc/include/asm/byteorder.h1
-rw-r--r--arch/openrisc/include/asm/elf.h51
-rw-r--r--arch/openrisc/include/asm/kvm_para.h1
-rw-r--r--arch/openrisc/include/asm/param.h26
-rw-r--r--arch/openrisc/include/asm/ptrace.h17
-rw-r--r--arch/openrisc/include/asm/sigcontext.h33
-rw-r--r--arch/openrisc/include/asm/unistd.h26
8 files changed, 2 insertions, 155 deletions
diff --git a/arch/openrisc/include/asm/Kbuild b/arch/openrisc/include/asm/Kbuild
index 7140b6b26441..78de6805268d 100644
--- a/arch/openrisc/include/asm/Kbuild
+++ b/arch/openrisc/include/asm/Kbuild
@@ -1,6 +1,4 @@
1include include/asm-generic/Kbuild.asm
2 1
3header-y += elf.h
4header-y += ucontext.h 2header-y += ucontext.h
5 3
6generic-y += atomic.h 4generic-y += atomic.h
diff --git a/arch/openrisc/include/asm/byteorder.h b/arch/openrisc/include/asm/byteorder.h
deleted file mode 100644
index 60d14f7e14e2..000000000000
--- a/arch/openrisc/include/asm/byteorder.h
+++ /dev/null
@@ -1 +0,0 @@
1#include <linux/byteorder/big_endian.h>
diff --git a/arch/openrisc/include/asm/elf.h b/arch/openrisc/include/asm/elf.h
index 225a7ff320ad..f4aa8a542a22 100644
--- a/arch/openrisc/include/asm/elf.h
+++ b/arch/openrisc/include/asm/elf.h
@@ -15,60 +15,12 @@
15 * the Free Software Foundation; either version 2 of the License, or 15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version. 16 * (at your option) any later version.
17 */ 17 */
18
19#ifndef __ASM_OPENRISC_ELF_H 18#ifndef __ASM_OPENRISC_ELF_H
20#define __ASM_OPENRISC_ELF_H 19#define __ASM_OPENRISC_ELF_H
21 20
22/*
23 * This files is partially exported to userspace. This allows us to keep
24 * the ELF bits in one place which should assist in keeping the kernel and
25 * userspace in sync.
26 */
27
28/*
29 * ELF register definitions..
30 */
31
32/* for struct user_regs_struct definition */
33#include <asm/ptrace.h>
34
35/* The OR1K relocation types... not all relevant for module loader */
36#define R_OR32_NONE 0
37#define R_OR32_32 1
38#define R_OR32_16 2
39#define R_OR32_8 3
40#define R_OR32_CONST 4
41#define R_OR32_CONSTH 5
42#define R_OR32_JUMPTARG 6
43#define R_OR32_VTINHERIT 7
44#define R_OR32_VTENTRY 8
45
46typedef unsigned long elf_greg_t;
47
48/*
49 * Note that NGREG is defined to ELF_NGREG in include/linux/elfcore.h, and is
50 * thus exposed to user-space.
51 */
52#define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
53typedef elf_greg_t elf_gregset_t[ELF_NGREG];
54
55/* A placeholder; OR32 does not have fp support yes, so no fp regs for now. */
56typedef unsigned long elf_fpregset_t;
57
58/* This should be moved to include/linux/elf.h */
59#define EM_OR32 0x8472
60#define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */
61
62/*
63 * These are used to set parameters in the core dumps.
64 */
65#define ELF_ARCH EM_OR32
66#define ELF_CLASS ELFCLASS32
67#define ELF_DATA ELFDATA2MSB
68
69#ifdef __KERNEL__
70 21
71#include <linux/types.h> 22#include <linux/types.h>
23#include <uapi/asm/elf.h>
72 24
73/* 25/*
74 * This is used to ensure we don't load something for the wrong architecture. 26 * This is used to ensure we don't load something for the wrong architecture.
@@ -113,5 +65,4 @@ extern void dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt);
113#define SET_PERSONALITY(ex) \ 65#define SET_PERSONALITY(ex) \
114 set_personality(PER_LINUX | (current->personality & (~PER_MASK))) 66 set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
115 67
116#endif /* __KERNEL__ */
117#endif 68#endif
diff --git a/arch/openrisc/include/asm/kvm_para.h b/arch/openrisc/include/asm/kvm_para.h
deleted file mode 100644
index 14fab8f0b957..000000000000
--- a/arch/openrisc/include/asm/kvm_para.h
+++ /dev/null
@@ -1 +0,0 @@
1#include <asm-generic/kvm_para.h>
diff --git a/arch/openrisc/include/asm/param.h b/arch/openrisc/include/asm/param.h
deleted file mode 100644
index c39a336610e2..000000000000
--- a/arch/openrisc/include/asm/param.h
+++ /dev/null
@@ -1,26 +0,0 @@
1/*
2 * OpenRISC Linux
3 *
4 * Linux architectural port borrowing liberally from similar works of
5 * others. All original copyrights apply as per the original source
6 * declaration.
7 *
8 * OpenRISC implementation:
9 * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
10 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11 * et al.
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 */
18
19#ifndef __ASM_OPENRISC_PARAM_H
20#define __ASM_OPENRISC_PARAM_H
21
22#define EXEC_PAGESIZE 8192
23
24#include <asm-generic/param.h>
25
26#endif /* __ASM_OPENRISC_PARAM_H */
diff --git a/arch/openrisc/include/asm/ptrace.h b/arch/openrisc/include/asm/ptrace.h
index 8555c0c3d4d7..6ca17264c399 100644
--- a/arch/openrisc/include/asm/ptrace.h
+++ b/arch/openrisc/include/asm/ptrace.h
@@ -15,25 +15,12 @@
15 * the Free Software Foundation; either version 2 of the License, or 15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version. 16 * (at your option) any later version.
17 */ 17 */
18
19#ifndef __ASM_OPENRISC_PTRACE_H 18#ifndef __ASM_OPENRISC_PTRACE_H
20#define __ASM_OPENRISC_PTRACE_H 19#define __ASM_OPENRISC_PTRACE_H
21 20
22#ifndef __ASSEMBLY__
23/*
24 * This is the layout of the regset returned by the GETREGSET ptrace call
25 */
26struct user_regs_struct {
27 /* GPR R0-R31... */
28 unsigned long gpr[32];
29 unsigned long pc;
30 unsigned long sr;
31};
32#endif
33
34#ifdef __KERNEL__
35 21
36#include <asm/spr_defs.h> 22#include <asm/spr_defs.h>
23#include <uapi/asm/ptrace.h>
37 24
38/* 25/*
39 * Make kernel PTrace/register structures opaque to userspace... userspace can 26 * Make kernel PTrace/register structures opaque to userspace... userspace can
@@ -134,6 +121,4 @@ static inline long regs_return_value(struct pt_regs *regs)
134#define PT_ORIG_GPR11 132 121#define PT_ORIG_GPR11 132
135#define PT_SYSCALLNO 136 122#define PT_SYSCALLNO 136
136 123
137#endif /* __KERNEL__ */
138
139#endif /* __ASM_OPENRISC_PTRACE_H */ 124#endif /* __ASM_OPENRISC_PTRACE_H */
diff --git a/arch/openrisc/include/asm/sigcontext.h b/arch/openrisc/include/asm/sigcontext.h
deleted file mode 100644
index b79c2b19afbe..000000000000
--- a/arch/openrisc/include/asm/sigcontext.h
+++ /dev/null
@@ -1,33 +0,0 @@
1/*
2 * OpenRISC Linux
3 *
4 * Linux architectural port borrowing liberally from similar works of
5 * others. All original copyrights apply as per the original source
6 * declaration.
7 *
8 * OpenRISC implementation:
9 * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
10 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11 * et al.
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 */
18
19#ifndef __ASM_OPENRISC_SIGCONTEXT_H
20#define __ASM_OPENRISC_SIGCONTEXT_H
21
22#include <asm/ptrace.h>
23
24/* This struct is saved by setup_frame in signal.c, to keep the current
25 context while a signal handler is executed. It's restored by sys_sigreturn.
26*/
27
28struct sigcontext {
29 struct user_regs_struct regs; /* needs to be first */
30 unsigned long oldmask;
31};
32
33#endif /* __ASM_OPENRISC_SIGCONTEXT_H */
diff --git a/arch/openrisc/include/asm/unistd.h b/arch/openrisc/include/asm/unistd.h
deleted file mode 100644
index 437bdbb61b14..000000000000
--- a/arch/openrisc/include/asm/unistd.h
+++ /dev/null
@@ -1,26 +0,0 @@
1/*
2 * OpenRISC Linux
3 *
4 * Linux architectural port borrowing liberally from similar works of
5 * others. All original copyrights apply as per the original source
6 * declaration.
7 *
8 * OpenRISC implementation:
9 * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
10 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11 * et al.
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 */
18
19#define __ARCH_HAVE_MMU
20
21#define sys_mmap2 sys_mmap_pgoff
22
23#include <asm-generic/unistd.h>
24
25#define __NR_or1k_atomic __NR_arch_specific_syscall
26__SYSCALL(__NR_or1k_atomic, sys_or1k_atomic)