aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/hexagon/include/asm/Kbuild58
-rw-r--r--arch/hexagon/include/asm/bitsperlong.h26
-rw-r--r--arch/hexagon/include/asm/mutex.h8
-rw-r--r--arch/hexagon/include/asm/setup.h29
-rw-r--r--arch/hexagon/include/asm/user.h81
5 files changed, 202 insertions, 0 deletions
diff --git a/arch/hexagon/include/asm/Kbuild b/arch/hexagon/include/asm/Kbuild
new file mode 100644
index 000000000000..9aa17f1917ea
--- /dev/null
+++ b/arch/hexagon/include/asm/Kbuild
@@ -0,0 +1,58 @@
1include include/asm-generic/Kbuild.asm
2
3header-y += registers.h
4header-y += ucontext.h
5header-y += user.h
6
7generic-y += auxvec.h
8generic-y += bug.h
9generic-y += bugs.h
10generic-y += cpumask.h
11generic-y += cputime.h
12generic-y += current.h
13generic-y += device.h
14generic-y += div64.h
15generic-y += emergency-restart.h
16generic-y += errno.h
17generic-y += fb.h
18generic-y += fcntl.h
19generic-y += ftrace.h
20generic-y += hardirq.h
21generic-y += hw_irq.h
22generic-y += ioctl.h
23generic-y += ioctls.h
24generic-y += iomap.h
25generic-y += ipcbuf.h
26generic-y += ipc.h
27generic-y += irq_regs.h
28generic-y += kdebug.h
29generic-y += kmap_types.h
30generic-y += local64.h
31generic-y += local.h
32generic-y += local.h
33generic-y += mman.h
34generic-y += msgbuf.h
35generic-y += pci.h
36generic-y += percpu.h
37generic-y += poll.h
38generic-y += posix_types.h
39generic-y += resource.h
40generic-y += rwsem.h
41generic-y += scatterlist.h
42generic-y += sections.h
43generic-y += segment.h
44generic-y += sembuf.h
45generic-y += shmbuf.h
46generic-y += shmparam.h
47generic-y += siginfo.h
48generic-y += socket.h
49generic-y += sockios.h
50generic-y += statfs.h
51generic-y += stat.h
52generic-y += termbits.h
53generic-y += termios.h
54generic-y += topology.h
55generic-y += types.h
56generic-y += ucontext.h
57generic-y += unaligned.h
58generic-y += xor.h
diff --git a/arch/hexagon/include/asm/bitsperlong.h b/arch/hexagon/include/asm/bitsperlong.h
new file mode 100644
index 000000000000..2701cae3426e
--- /dev/null
+++ b/arch/hexagon/include/asm/bitsperlong.h
@@ -0,0 +1,26 @@
1/*
2 * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 * 02110-1301, USA.
17 */
18
19#ifndef __ASM_HEXAGON_BITSPERLONG_H
20#define __ASM_HEXAGON_BITSPERLONG_H
21
22#define __BITS_PER_LONG 32
23
24#include <asm-generic/bitsperlong.h>
25
26#endif
diff --git a/arch/hexagon/include/asm/mutex.h b/arch/hexagon/include/asm/mutex.h
new file mode 100644
index 000000000000..58b52de1bc22
--- /dev/null
+++ b/arch/hexagon/include/asm/mutex.h
@@ -0,0 +1,8 @@
1/*
2 * Pull in the generic implementation for the mutex fastpath.
3 *
4 * TODO: implement optimized primitives instead, or leave the generic
5 * implementation in place, or pick the atomic_xchg() based generic
6 * implementation. (see asm-generic/mutex-xchg.h for details)
7 */
8#include <asm-generic/mutex-xchg.h>
diff --git a/arch/hexagon/include/asm/setup.h b/arch/hexagon/include/asm/setup.h
new file mode 100644
index 000000000000..3b754c50bc0a
--- /dev/null
+++ b/arch/hexagon/include/asm/setup.h
@@ -0,0 +1,29 @@
1/*
2 * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 * 02110-1301, USA.
17 */
18
19#ifndef _ASM_SETUP_H
20#define _ASM_SETUP_H
21
22#include <linux/init.h>
23#include <asm-generic/setup.h>
24
25extern char external_cmdline_buffer;
26
27void __init setup_arch_memory(void);
28
29#endif
diff --git a/arch/hexagon/include/asm/user.h b/arch/hexagon/include/asm/user.h
new file mode 100644
index 000000000000..3a55078543d1
--- /dev/null
+++ b/arch/hexagon/include/asm/user.h
@@ -0,0 +1,81 @@
1/*
2 * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 * 02110-1301, USA.
17 */
18
19#ifndef HEXAGON_ASM_USER_H
20#define HEXAGON_ASM_USER_H
21
22/*
23 * Layout for registers passed in elf core dumps to userspace.
24 *
25 * Basically a rearranged subset of "pt_regs".
26 *
27 * Interested parties: libc, gdb...
28 */
29
30struct user_regs_struct {
31 unsigned long r0;
32 unsigned long r1;
33 unsigned long r2;
34 unsigned long r3;
35 unsigned long r4;
36 unsigned long r5;
37 unsigned long r6;
38 unsigned long r7;
39 unsigned long r8;
40 unsigned long r9;
41 unsigned long r10;
42 unsigned long r11;
43 unsigned long r12;
44 unsigned long r13;
45 unsigned long r14;
46 unsigned long r15;
47 unsigned long r16;
48 unsigned long r17;
49 unsigned long r18;
50 unsigned long r19;
51 unsigned long r20;
52 unsigned long r21;
53 unsigned long r22;
54 unsigned long r23;
55 unsigned long r24;
56 unsigned long r25;
57 unsigned long r26;
58 unsigned long r27;
59 unsigned long r28;
60 unsigned long r29;
61 unsigned long r30;
62 unsigned long r31;
63 unsigned long sa0;
64 unsigned long lc0;
65 unsigned long sa1;
66 unsigned long lc1;
67 unsigned long m0;
68 unsigned long m1;
69 unsigned long usr;
70 unsigned long p3_0;
71 unsigned long gp;
72 unsigned long ugp;
73 unsigned long pc;
74 unsigned long cause;
75 unsigned long badva;
76 unsigned long pad1; /* pad out to 48 words total */
77 unsigned long pad2; /* pad out to 48 words total */
78 unsigned long pad3; /* pad out to 48 words total */
79};
80
81#endif