diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-04-29 19:53:17 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-04-29 19:53:17 -0400 |
commit | d9c5841e22231e4e49fd0a1004164e6fce59b7a6 (patch) | |
tree | e1f589c46b3ff79bbe7b1b2469f6362f94576da6 /arch/mn10300/kernel | |
parent | b701a47ba48b698976fb2fe05fb285b0edc1d26a (diff) | |
parent | 5967ed87ade85a421ef814296c3c7f182b08c225 (diff) |
Merge branch 'x86/asm' into x86/atomic
Merge reason:
Conflict between LOCK_PREFIX_HERE and relative alternatives
pointers
Resolved Conflicts:
arch/x86/include/asm/alternative.h
arch/x86/kernel/alternative.c
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/mn10300/kernel')
-rw-r--r-- | arch/mn10300/kernel/entry.S | 3 | ||||
-rw-r--r-- | arch/mn10300/kernel/mn10300-serial.c | 3 | ||||
-rw-r--r-- | arch/mn10300/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/mn10300/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/mn10300/kernel/signal.c | 2 | ||||
-rw-r--r-- | arch/mn10300/kernel/sys_mn10300.c | 106 |
6 files changed, 6 insertions, 111 deletions
diff --git a/arch/mn10300/kernel/entry.S b/arch/mn10300/kernel/entry.S index c9ee6c009d79..d9ed5a15c547 100644 --- a/arch/mn10300/kernel/entry.S +++ b/arch/mn10300/kernel/entry.S | |||
@@ -468,7 +468,7 @@ ENTRY(sys_call_table) | |||
468 | .long sys_settimeofday | 468 | .long sys_settimeofday |
469 | .long sys_getgroups16 /* 80 */ | 469 | .long sys_getgroups16 /* 80 */ |
470 | .long sys_setgroups16 | 470 | .long sys_setgroups16 |
471 | .long old_select | 471 | .long sys_old_select |
472 | .long sys_symlink | 472 | .long sys_symlink |
473 | .long sys_lstat | 473 | .long sys_lstat |
474 | .long sys_readlink /* 85 */ | 474 | .long sys_readlink /* 85 */ |
@@ -724,6 +724,7 @@ ENTRY(sys_call_table) | |||
724 | .long sys_pwritev /* 335 */ | 724 | .long sys_pwritev /* 335 */ |
725 | .long sys_rt_tgsigqueueinfo | 725 | .long sys_rt_tgsigqueueinfo |
726 | .long sys_perf_event_open | 726 | .long sys_perf_event_open |
727 | .long sys_recvmmsg | ||
727 | 728 | ||
728 | 729 | ||
729 | nr_syscalls=(.-sys_call_table)/4 | 730 | nr_syscalls=(.-sys_call_table)/4 |
diff --git a/arch/mn10300/kernel/mn10300-serial.c b/arch/mn10300/kernel/mn10300-serial.c index 229b710fc5d5..ef34d5a0f8bd 100644 --- a/arch/mn10300/kernel/mn10300-serial.c +++ b/arch/mn10300/kernel/mn10300-serial.c | |||
@@ -380,7 +380,8 @@ static int mask_test_and_clear(volatile u8 *ptr, u8 mask) | |||
380 | u32 epsw; | 380 | u32 epsw; |
381 | asm volatile(" bclr %1,(%2) \n" | 381 | asm volatile(" bclr %1,(%2) \n" |
382 | " mov epsw,%0 \n" | 382 | " mov epsw,%0 \n" |
383 | : "=d"(epsw) : "d"(mask), "a"(ptr)); | 383 | : "=d"(epsw) : "d"(mask), "a"(ptr) |
384 | : "cc", "memory"); | ||
384 | return !(epsw & EPSW_FLAG_Z); | 385 | return !(epsw & EPSW_FLAG_Z); |
385 | } | 386 | } |
386 | 387 | ||
diff --git a/arch/mn10300/kernel/process.c b/arch/mn10300/kernel/process.c index ec8a21df1142..82b817c7f7b6 100644 --- a/arch/mn10300/kernel/process.c +++ b/arch/mn10300/kernel/process.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/stddef.h> | 18 | #include <linux/stddef.h> |
19 | #include <linux/unistd.h> | 19 | #include <linux/unistd.h> |
20 | #include <linux/ptrace.h> | 20 | #include <linux/ptrace.h> |
21 | #include <linux/slab.h> | ||
22 | #include <linux/user.h> | 21 | #include <linux/user.h> |
23 | #include <linux/interrupt.h> | 22 | #include <linux/interrupt.h> |
24 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
@@ -26,6 +25,7 @@ | |||
26 | #include <linux/percpu.h> | 25 | #include <linux/percpu.h> |
27 | #include <linux/err.h> | 26 | #include <linux/err.h> |
28 | #include <linux/fs.h> | 27 | #include <linux/fs.h> |
28 | #include <linux/slab.h> | ||
29 | #include <asm/uaccess.h> | 29 | #include <asm/uaccess.h> |
30 | #include <asm/pgtable.h> | 30 | #include <asm/pgtable.h> |
31 | #include <asm/system.h> | 31 | #include <asm/system.h> |
diff --git a/arch/mn10300/kernel/setup.c b/arch/mn10300/kernel/setup.c index 3f24c298a3af..d464affcba0e 100644 --- a/arch/mn10300/kernel/setup.c +++ b/arch/mn10300/kernel/setup.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/stddef.h> | 15 | #include <linux/stddef.h> |
16 | #include <linux/unistd.h> | 16 | #include <linux/unistd.h> |
17 | #include <linux/ptrace.h> | 17 | #include <linux/ptrace.h> |
18 | #include <linux/slab.h> | ||
19 | #include <linux/user.h> | 18 | #include <linux/user.h> |
20 | #include <linux/tty.h> | 19 | #include <linux/tty.h> |
21 | #include <linux/ioport.h> | 20 | #include <linux/ioport.h> |
diff --git a/arch/mn10300/kernel/signal.c b/arch/mn10300/kernel/signal.c index a21f43bc68e2..717db14c2cc3 100644 --- a/arch/mn10300/kernel/signal.c +++ b/arch/mn10300/kernel/signal.c | |||
@@ -264,7 +264,7 @@ static inline void __user *get_sigframe(struct k_sigaction *ka, | |||
264 | 264 | ||
265 | /* this is the X/Open sanctioned signal stack switching. */ | 265 | /* this is the X/Open sanctioned signal stack switching. */ |
266 | if (ka->sa.sa_flags & SA_ONSTACK) { | 266 | if (ka->sa.sa_flags & SA_ONSTACK) { |
267 | if (!on_sig_stack(sp)) | 267 | if (sas_ss_flags(sp) == 0) |
268 | sp = current->sas_ss_sp + current->sas_ss_size; | 268 | sp = current->sas_ss_sp + current->sas_ss_size; |
269 | } | 269 | } |
270 | 270 | ||
diff --git a/arch/mn10300/kernel/sys_mn10300.c b/arch/mn10300/kernel/sys_mn10300.c index 17cc6ce04e84..815f1355fad4 100644 --- a/arch/mn10300/kernel/sys_mn10300.c +++ b/arch/mn10300/kernel/sys_mn10300.c | |||
@@ -31,109 +31,3 @@ asmlinkage long old_mmap(unsigned long addr, unsigned long len, | |||
31 | return -EINVAL; | 31 | return -EINVAL; |
32 | return sys_mmap_pgoff(addr, len, prot, flags, fd, offset >> PAGE_SHIFT); | 32 | return sys_mmap_pgoff(addr, len, prot, flags, fd, offset >> PAGE_SHIFT); |
33 | } | 33 | } |
34 | |||
35 | struct sel_arg_struct { | ||
36 | unsigned long n; | ||
37 | fd_set *inp; | ||
38 | fd_set *outp; | ||
39 | fd_set *exp; | ||
40 | struct timeval *tvp; | ||
41 | }; | ||
42 | |||
43 | asmlinkage int old_select(struct sel_arg_struct __user *arg) | ||
44 | { | ||
45 | struct sel_arg_struct a; | ||
46 | |||
47 | if (copy_from_user(&a, arg, sizeof(a))) | ||
48 | return -EFAULT; | ||
49 | /* sys_select() does the appropriate kernel locking */ | ||
50 | return sys_select(a.n, a.inp, a.outp, a.exp, a.tvp); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * sys_ipc() is the de-multiplexer for the SysV IPC calls.. | ||
55 | * | ||
56 | * This is really horribly ugly. | ||
57 | */ | ||
58 | asmlinkage long sys_ipc(uint call, int first, int second, | ||
59 | int third, void __user *ptr, long fifth) | ||
60 | { | ||
61 | int version, ret; | ||
62 | |||
63 | version = call >> 16; /* hack for backward compatibility */ | ||
64 | call &= 0xffff; | ||
65 | |||
66 | switch (call) { | ||
67 | case SEMOP: | ||
68 | return sys_semtimedop(first, (struct sembuf __user *)ptr, | ||
69 | second, NULL); | ||
70 | case SEMTIMEDOP: | ||
71 | return sys_semtimedop(first, (struct sembuf __user *)ptr, | ||
72 | second, | ||
73 | (const struct timespec __user *)fifth); | ||
74 | case SEMGET: | ||
75 | return sys_semget(first, second, third); | ||
76 | case SEMCTL: { | ||
77 | union semun fourth; | ||
78 | if (!ptr) | ||
79 | return -EINVAL; | ||
80 | if (get_user(fourth.__pad, (void __user * __user *) ptr)) | ||
81 | return -EFAULT; | ||
82 | return sys_semctl(first, second, third, fourth); | ||
83 | } | ||
84 | |||
85 | case MSGSND: | ||
86 | return sys_msgsnd(first, (struct msgbuf __user *) ptr, | ||
87 | second, third); | ||
88 | case MSGRCV: | ||
89 | switch (version) { | ||
90 | case 0: { | ||
91 | struct ipc_kludge tmp; | ||
92 | if (!ptr) | ||
93 | return -EINVAL; | ||
94 | |||
95 | if (copy_from_user(&tmp, | ||
96 | (struct ipc_kludge __user *) ptr, | ||
97 | sizeof(tmp))) | ||
98 | return -EFAULT; | ||
99 | return sys_msgrcv(first, tmp.msgp, second, | ||
100 | tmp.msgtyp, third); | ||
101 | } | ||
102 | default: | ||
103 | return sys_msgrcv(first, | ||
104 | (struct msgbuf __user *) ptr, | ||
105 | second, fifth, third); | ||
106 | } | ||
107 | case MSGGET: | ||
108 | return sys_msgget((key_t) first, second); | ||
109 | case MSGCTL: | ||
110 | return sys_msgctl(first, second, | ||
111 | (struct msqid_ds __user *) ptr); | ||
112 | |||
113 | case SHMAT: | ||
114 | switch (version) { | ||
115 | default: { | ||
116 | ulong raddr; | ||
117 | ret = do_shmat(first, (char __user *) ptr, second, | ||
118 | &raddr); | ||
119 | if (ret) | ||
120 | return ret; | ||
121 | return put_user(raddr, (ulong *) third); | ||
122 | } | ||
123 | case 1: /* iBCS2 emulator entry point */ | ||
124 | if (!segment_eq(get_fs(), get_ds())) | ||
125 | return -EINVAL; | ||
126 | return do_shmat(first, (char __user *) ptr, second, | ||
127 | (ulong *) third); | ||
128 | } | ||
129 | case SHMDT: | ||
130 | return sys_shmdt((char __user *)ptr); | ||
131 | case SHMGET: | ||
132 | return sys_shmget(first, second, third); | ||
133 | case SHMCTL: | ||
134 | return sys_shmctl(first, second, | ||
135 | (struct shmid_ds __user *) ptr); | ||
136 | default: | ||
137 | return -EINVAL; | ||
138 | } | ||
139 | } | ||