aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68knommu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68knommu')
-rw-r--r--arch/m68knommu/kernel/sys_m68k.c86
1 files changed, 0 insertions, 86 deletions
diff --git a/arch/m68knommu/kernel/sys_m68k.c b/arch/m68knommu/kernel/sys_m68k.c
index 3e371cc9fd91..d65e9c4c930c 100644
--- a/arch/m68knommu/kernel/sys_m68k.c
+++ b/arch/m68knommu/kernel/sys_m68k.c
@@ -27,92 +27,6 @@
27#include <asm/cacheflush.h> 27#include <asm/cacheflush.h>
28#include <asm/unistd.h> 28#include <asm/unistd.h>
29 29
30/*
31 * sys_ipc() is the de-multiplexer for the SysV IPC calls..
32 *
33 * This is really horribly ugly.
34 */
35asmlinkage int sys_ipc (uint call, int first, int second,
36 int third, void *ptr, long fifth)
37{
38 int version, ret;
39
40 version = call >> 16; /* hack for backward compatibility */
41 call &= 0xffff;
42
43 if (call <= SEMCTL)
44 switch (call) {
45 case SEMOP:
46 return sys_semop (first, (struct sembuf *)ptr, second);
47 case SEMGET:
48 return sys_semget (first, second, third);
49 case SEMCTL: {
50 union semun fourth;
51 if (!ptr)
52 return -EINVAL;
53 if (get_user(fourth.__pad, (void **) ptr))
54 return -EFAULT;
55 return sys_semctl (first, second, third, fourth);
56 }
57 default:
58 return -EINVAL;
59 }
60 if (call <= MSGCTL)
61 switch (call) {
62 case MSGSND:
63 return sys_msgsnd (first, (struct msgbuf *) ptr,
64 second, third);
65 case MSGRCV:
66 switch (version) {
67 case 0: {
68 struct ipc_kludge tmp;
69 if (!ptr)
70 return -EINVAL;
71 if (copy_from_user (&tmp,
72 (struct ipc_kludge *)ptr,
73 sizeof (tmp)))
74 return -EFAULT;
75 return sys_msgrcv (first, tmp.msgp, second,
76 tmp.msgtyp, third);
77 }
78 default:
79 return sys_msgrcv (first,
80 (struct msgbuf *) ptr,
81 second, fifth, third);
82 }
83 case MSGGET:
84 return sys_msgget ((key_t) first, second);
85 case MSGCTL:
86 return sys_msgctl (first, second,
87 (struct msqid_ds *) ptr);
88 default:
89 return -EINVAL;
90 }
91 if (call <= SHMCTL)
92 switch (call) {
93 case SHMAT:
94 switch (version) {
95 default: {
96 ulong raddr;
97 ret = do_shmat (first, ptr, second, &raddr);
98 if (ret)
99 return ret;
100 return put_user (raddr, (ulong __user *) third);
101 }
102 }
103 case SHMDT:
104 return sys_shmdt (ptr);
105 case SHMGET:
106 return sys_shmget (first, second, third);
107 case SHMCTL:
108 return sys_shmctl (first, second, ptr);
109 default:
110 return -ENOSYS;
111 }
112
113 return -EINVAL;
114}
115
116/* sys_cacheflush -- flush (part of) the processor cache. */ 30/* sys_cacheflush -- flush (part of) the processor cache. */
117asmlinkage int 31asmlinkage int
118sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len) 32sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len)