diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/score/include/asm | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'arch/score/include/asm')
29 files changed, 279 insertions, 0 deletions
diff --git a/arch/score/include/asm/auxvec.h b/arch/score/include/asm/auxvec.h new file mode 100644 index 00000000000..f69151565ae --- /dev/null +++ b/arch/score/include/asm/auxvec.h | |||
@@ -0,0 +1,4 @@ | |||
1 | #ifndef _ASM_SCORE_AUXVEC_H | ||
2 | #define _ASM_SCORE_AUXVEC_H | ||
3 | |||
4 | #endif /* _ASM_SCORE_AUXVEC_H */ | ||
diff --git a/arch/score/include/asm/bitsperlong.h b/arch/score/include/asm/bitsperlong.h new file mode 100644 index 00000000000..86ff337aa45 --- /dev/null +++ b/arch/score/include/asm/bitsperlong.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_BITSPERLONG_H | ||
2 | #define _ASM_SCORE_BITSPERLONG_H | ||
3 | |||
4 | #include <asm-generic/bitsperlong.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_BITSPERLONG_H */ | ||
diff --git a/arch/score/include/asm/byteorder.h b/arch/score/include/asm/byteorder.h new file mode 100644 index 00000000000..88cbebc7921 --- /dev/null +++ b/arch/score/include/asm/byteorder.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_BYTEORDER_H | ||
2 | #define _ASM_SCORE_BYTEORDER_H | ||
3 | |||
4 | #include <linux/byteorder/little_endian.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_BYTEORDER_H */ | ||
diff --git a/arch/score/include/asm/errno.h b/arch/score/include/asm/errno.h new file mode 100644 index 00000000000..29ff39d5ab4 --- /dev/null +++ b/arch/score/include/asm/errno.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_ERRNO_H | ||
2 | #define _ASM_SCORE_ERRNO_H | ||
3 | |||
4 | #include <asm-generic/errno.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_ERRNO_H */ | ||
diff --git a/arch/score/include/asm/fcntl.h b/arch/score/include/asm/fcntl.h new file mode 100644 index 00000000000..03968a3103a --- /dev/null +++ b/arch/score/include/asm/fcntl.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_FCNTL_H | ||
2 | #define _ASM_SCORE_FCNTL_H | ||
3 | |||
4 | #include <asm-generic/fcntl.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_FCNTL_H */ | ||
diff --git a/arch/score/include/asm/ioctl.h b/arch/score/include/asm/ioctl.h new file mode 100644 index 00000000000..a351d2194bf --- /dev/null +++ b/arch/score/include/asm/ioctl.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_IOCTL_H | ||
2 | #define _ASM_SCORE_IOCTL_H | ||
3 | |||
4 | #include <asm-generic/ioctl.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_IOCTL_H */ | ||
diff --git a/arch/score/include/asm/ioctls.h b/arch/score/include/asm/ioctls.h new file mode 100644 index 00000000000..ed01d2b9aea --- /dev/null +++ b/arch/score/include/asm/ioctls.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_IOCTLS_H | ||
2 | #define _ASM_SCORE_IOCTLS_H | ||
3 | |||
4 | #include <asm-generic/ioctls.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_IOCTLS_H */ | ||
diff --git a/arch/score/include/asm/ipcbuf.h b/arch/score/include/asm/ipcbuf.h new file mode 100644 index 00000000000..e082ceff181 --- /dev/null +++ b/arch/score/include/asm/ipcbuf.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_IPCBUF_H | ||
2 | #define _ASM_SCORE_IPCBUF_H | ||
3 | |||
4 | #include <asm-generic/ipcbuf.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_IPCBUF_H */ | ||
diff --git a/arch/score/include/asm/mman.h b/arch/score/include/asm/mman.h new file mode 100644 index 00000000000..84d85ddfed8 --- /dev/null +++ b/arch/score/include/asm/mman.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_MMAN_H | ||
2 | #define _ASM_SCORE_MMAN_H | ||
3 | |||
4 | #include <asm-generic/mman.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_MMAN_H */ | ||
diff --git a/arch/score/include/asm/msgbuf.h b/arch/score/include/asm/msgbuf.h new file mode 100644 index 00000000000..7506721e29f --- /dev/null +++ b/arch/score/include/asm/msgbuf.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_MSGBUF_H | ||
2 | #define _ASM_SCORE_MSGBUF_H | ||
3 | |||
4 | #include <asm-generic/msgbuf.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_MSGBUF_H */ | ||
diff --git a/arch/score/include/asm/param.h b/arch/score/include/asm/param.h new file mode 100644 index 00000000000..916b8690b6a --- /dev/null +++ b/arch/score/include/asm/param.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_PARAM_H | ||
2 | #define _ASM_SCORE_PARAM_H | ||
3 | |||
4 | #include <asm-generic/param.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_PARAM_H */ | ||
diff --git a/arch/score/include/asm/poll.h b/arch/score/include/asm/poll.h new file mode 100644 index 00000000000..18532db0286 --- /dev/null +++ b/arch/score/include/asm/poll.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_POLL_H | ||
2 | #define _ASM_SCORE_POLL_H | ||
3 | |||
4 | #include <asm-generic/poll.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_POLL_H */ | ||
diff --git a/arch/score/include/asm/posix_types.h b/arch/score/include/asm/posix_types.h new file mode 100644 index 00000000000..b88acf80048 --- /dev/null +++ b/arch/score/include/asm/posix_types.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_POSIX_TYPES_H | ||
2 | #define _ASM_SCORE_POSIX_TYPES_H | ||
3 | |||
4 | #include <asm-generic/posix_types.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_POSIX_TYPES_H */ | ||
diff --git a/arch/score/include/asm/resource.h b/arch/score/include/asm/resource.h new file mode 100644 index 00000000000..9ce22bc7b47 --- /dev/null +++ b/arch/score/include/asm/resource.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_RESOURCE_H | ||
2 | #define _ASM_SCORE_RESOURCE_H | ||
3 | |||
4 | #include <asm-generic/resource.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_RESOURCE_H */ | ||
diff --git a/arch/score/include/asm/sembuf.h b/arch/score/include/asm/sembuf.h new file mode 100644 index 00000000000..dae5e835ce9 --- /dev/null +++ b/arch/score/include/asm/sembuf.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_SEMBUF_H | ||
2 | #define _ASM_SCORE_SEMBUF_H | ||
3 | |||
4 | #include <asm-generic/sembuf.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_SEMBUF_H */ | ||
diff --git a/arch/score/include/asm/shmbuf.h b/arch/score/include/asm/shmbuf.h new file mode 100644 index 00000000000..c85b2429ba2 --- /dev/null +++ b/arch/score/include/asm/shmbuf.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_SHMBUF_H | ||
2 | #define _ASM_SCORE_SHMBUF_H | ||
3 | |||
4 | #include <asm-generic/shmbuf.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_SHMBUF_H */ | ||
diff --git a/arch/score/include/asm/sigcontext.h b/arch/score/include/asm/sigcontext.h new file mode 100644 index 00000000000..5ffda39ddb9 --- /dev/null +++ b/arch/score/include/asm/sigcontext.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef _ASM_SCORE_SIGCONTEXT_H | ||
2 | #define _ASM_SCORE_SIGCONTEXT_H | ||
3 | |||
4 | /* | ||
5 | * Keep this struct definition in sync with the sigcontext fragment | ||
6 | * in arch/score/tools/offset.c | ||
7 | */ | ||
8 | struct sigcontext { | ||
9 | unsigned int sc_regmask; | ||
10 | unsigned int sc_psr; | ||
11 | unsigned int sc_condition; | ||
12 | unsigned long sc_pc; | ||
13 | unsigned long sc_regs[32]; | ||
14 | unsigned int sc_ssflags; | ||
15 | unsigned int sc_mdceh; | ||
16 | unsigned int sc_mdcel; | ||
17 | unsigned int sc_ecr; | ||
18 | unsigned long sc_ema; | ||
19 | unsigned long sc_sigset[4]; | ||
20 | }; | ||
21 | |||
22 | #endif /* _ASM_SCORE_SIGCONTEXT_H */ | ||
diff --git a/arch/score/include/asm/siginfo.h b/arch/score/include/asm/siginfo.h new file mode 100644 index 00000000000..87ca35607a2 --- /dev/null +++ b/arch/score/include/asm/siginfo.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_SIGINFO_H | ||
2 | #define _ASM_SCORE_SIGINFO_H | ||
3 | |||
4 | #include <asm-generic/siginfo.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_SIGINFO_H */ | ||
diff --git a/arch/score/include/asm/signal.h b/arch/score/include/asm/signal.h new file mode 100644 index 00000000000..2605bc06b64 --- /dev/null +++ b/arch/score/include/asm/signal.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_SIGNAL_H | ||
2 | #define _ASM_SCORE_SIGNAL_H | ||
3 | |||
4 | #include <asm-generic/signal.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_SIGNAL_H */ | ||
diff --git a/arch/score/include/asm/socket.h b/arch/score/include/asm/socket.h new file mode 100644 index 00000000000..612a70e385b --- /dev/null +++ b/arch/score/include/asm/socket.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_SOCKET_H | ||
2 | #define _ASM_SCORE_SOCKET_H | ||
3 | |||
4 | #include <asm-generic/socket.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_SOCKET_H */ | ||
diff --git a/arch/score/include/asm/sockios.h b/arch/score/include/asm/sockios.h new file mode 100644 index 00000000000..ba825648018 --- /dev/null +++ b/arch/score/include/asm/sockios.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_SOCKIOS_H | ||
2 | #define _ASM_SCORE_SOCKIOS_H | ||
3 | |||
4 | #include <asm-generic/sockios.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_SOCKIOS_H */ | ||
diff --git a/arch/score/include/asm/stat.h b/arch/score/include/asm/stat.h new file mode 100644 index 00000000000..5037055500a --- /dev/null +++ b/arch/score/include/asm/stat.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_STAT_H | ||
2 | #define _ASM_SCORE_STAT_H | ||
3 | |||
4 | #include <asm-generic/stat.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_STAT_H */ | ||
diff --git a/arch/score/include/asm/statfs.h b/arch/score/include/asm/statfs.h new file mode 100644 index 00000000000..36e41004e99 --- /dev/null +++ b/arch/score/include/asm/statfs.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_STATFS_H | ||
2 | #define _ASM_SCORE_STATFS_H | ||
3 | |||
4 | #include <asm-generic/statfs.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_STATFS_H */ | ||
diff --git a/arch/score/include/asm/swab.h b/arch/score/include/asm/swab.h new file mode 100644 index 00000000000..fadc3cc6d8a --- /dev/null +++ b/arch/score/include/asm/swab.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_SWAB_H | ||
2 | #define _ASM_SCORE_SWAB_H | ||
3 | |||
4 | #include <asm-generic/swab.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_SWAB_H */ | ||
diff --git a/arch/score/include/asm/system.h b/arch/score/include/asm/system.h new file mode 100644 index 00000000000..589d5c7e171 --- /dev/null +++ b/arch/score/include/asm/system.h | |||
@@ -0,0 +1,90 @@ | |||
1 | #ifndef _ASM_SCORE_SYSTEM_H | ||
2 | #define _ASM_SCORE_SYSTEM_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | #include <linux/irqflags.h> | ||
6 | |||
7 | struct pt_regs; | ||
8 | struct task_struct; | ||
9 | |||
10 | extern void *resume(void *last, void *next, void *next_ti); | ||
11 | |||
12 | #define switch_to(prev, next, last) \ | ||
13 | do { \ | ||
14 | (last) = resume(prev, next, task_thread_info(next)); \ | ||
15 | } while (0) | ||
16 | |||
17 | #define finish_arch_switch(prev) do {} while (0) | ||
18 | |||
19 | typedef void (*vi_handler_t)(void); | ||
20 | extern unsigned long arch_align_stack(unsigned long sp); | ||
21 | |||
22 | #define mb() barrier() | ||
23 | #define rmb() barrier() | ||
24 | #define wmb() barrier() | ||
25 | #define smp_mb() barrier() | ||
26 | #define smp_rmb() barrier() | ||
27 | #define smp_wmb() barrier() | ||
28 | |||
29 | #define read_barrier_depends() do {} while (0) | ||
30 | #define smp_read_barrier_depends() do {} while (0) | ||
31 | |||
32 | #define set_mb(var, value) do {var = value; wmb(); } while (0) | ||
33 | |||
34 | #define __HAVE_ARCH_CMPXCHG 1 | ||
35 | |||
36 | #include <asm-generic/cmpxchg-local.h> | ||
37 | |||
38 | #ifndef __ASSEMBLY__ | ||
39 | |||
40 | struct __xchg_dummy { unsigned long a[100]; }; | ||
41 | #define __xg(x) ((struct __xchg_dummy *)(x)) | ||
42 | |||
43 | static inline | ||
44 | unsigned long __xchg(volatile unsigned long *m, unsigned long val) | ||
45 | { | ||
46 | unsigned long retval; | ||
47 | unsigned long flags; | ||
48 | |||
49 | local_irq_save(flags); | ||
50 | retval = *m; | ||
51 | *m = val; | ||
52 | local_irq_restore(flags); | ||
53 | return retval; | ||
54 | } | ||
55 | |||
56 | #define xchg(ptr, v) \ | ||
57 | ((__typeof__(*(ptr))) __xchg((unsigned long *)(ptr), \ | ||
58 | (unsigned long)(v))) | ||
59 | |||
60 | static inline unsigned long __cmpxchg(volatile unsigned long *m, | ||
61 | unsigned long old, unsigned long new) | ||
62 | { | ||
63 | unsigned long retval; | ||
64 | unsigned long flags; | ||
65 | |||
66 | local_irq_save(flags); | ||
67 | retval = *m; | ||
68 | if (retval == old) | ||
69 | *m = new; | ||
70 | local_irq_restore(flags); | ||
71 | return retval; | ||
72 | } | ||
73 | |||
74 | #define cmpxchg(ptr, o, n) \ | ||
75 | ((__typeof__(*(ptr))) __cmpxchg((unsigned long *)(ptr), \ | ||
76 | (unsigned long)(o), \ | ||
77 | (unsigned long)(n))) | ||
78 | |||
79 | extern void __die(const char *, struct pt_regs *, const char *, | ||
80 | const char *, unsigned long) __attribute__((noreturn)); | ||
81 | extern void __die_if_kernel(const char *, struct pt_regs *, const char *, | ||
82 | const char *, unsigned long); | ||
83 | |||
84 | #define die(msg, regs) \ | ||
85 | __die(msg, regs, __FILE__ ":", __func__, __LINE__) | ||
86 | #define die_if_kernel(msg, regs) \ | ||
87 | __die_if_kernel(msg, regs, __FILE__ ":", __func__, __LINE__) | ||
88 | |||
89 | #endif /* !__ASSEMBLY__ */ | ||
90 | #endif /* _ASM_SCORE_SYSTEM_H */ | ||
diff --git a/arch/score/include/asm/termbits.h b/arch/score/include/asm/termbits.h new file mode 100644 index 00000000000..9a95c141243 --- /dev/null +++ b/arch/score/include/asm/termbits.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_TERMBITS_H | ||
2 | #define _ASM_SCORE_TERMBITS_H | ||
3 | |||
4 | #include <asm-generic/termbits.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_TERMBITS_H */ | ||
diff --git a/arch/score/include/asm/termios.h b/arch/score/include/asm/termios.h new file mode 100644 index 00000000000..40984e811ad --- /dev/null +++ b/arch/score/include/asm/termios.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_TERMIOS_H | ||
2 | #define _ASM_SCORE_TERMIOS_H | ||
3 | |||
4 | #include <asm-generic/termios.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_TERMIOS_H */ | ||
diff --git a/arch/score/include/asm/types.h b/arch/score/include/asm/types.h new file mode 100644 index 00000000000..2140032778e --- /dev/null +++ b/arch/score/include/asm/types.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_SCORE_TYPES_H | ||
2 | #define _ASM_SCORE_TYPES_H | ||
3 | |||
4 | #include <asm-generic/types.h> | ||
5 | |||
6 | #endif /* _ASM_SCORE_TYPES_H */ | ||
diff --git a/arch/score/include/asm/unistd.h b/arch/score/include/asm/unistd.h new file mode 100644 index 00000000000..4aa957364d4 --- /dev/null +++ b/arch/score/include/asm/unistd.h | |||
@@ -0,0 +1,13 @@ | |||
1 | #if !defined(_ASM_SCORE_UNISTD_H) || defined(__SYSCALL) | ||
2 | #define _ASM_SCORE_UNISTD_H | ||
3 | |||
4 | #define __ARCH_HAVE_MMU | ||
5 | |||
6 | #define __ARCH_WANT_SYSCALL_NO_AT | ||
7 | #define __ARCH_WANT_SYSCALL_NO_FLAGS | ||
8 | #define __ARCH_WANT_SYSCALL_OFF_T | ||
9 | #define __ARCH_WANT_SYSCALL_DEPRECATED | ||
10 | |||
11 | #include <asm-generic/unistd.h> | ||
12 | |||
13 | #endif /* _ASM_SCORE_UNISTD_H */ | ||