aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/h8300/kernel/syscalls.S78
-rw-r--r--include/asm-h8300/unistd.h66
2 files changed, 102 insertions, 42 deletions
diff --git a/arch/h8300/kernel/syscalls.S b/arch/h8300/kernel/syscalls.S
index dab98fd99e63..54e21c3f2057 100644
--- a/arch/h8300/kernel/syscalls.S
+++ b/arch/h8300/kernel/syscalls.S
@@ -31,7 +31,7 @@ SYMBOL_NAME_LABEL(sys_call_table)
31 .long SYMBOL_NAME(sys_mknod) 31 .long SYMBOL_NAME(sys_mknod)
32 .long SYMBOL_NAME(sys_chmod) /* 15 */ 32 .long SYMBOL_NAME(sys_chmod) /* 15 */
33 .long SYMBOL_NAME(sys_chown16) 33 .long SYMBOL_NAME(sys_chown16)
34 .long SYMBOL_NAME(sys_ni_syscall) /* old break syscall holder */ 34 .long SYMBOL_NAME(sys_ni_syscall) /* old break syscall holder */
35 .long SYMBOL_NAME(sys_stat) 35 .long SYMBOL_NAME(sys_stat)
36 .long SYMBOL_NAME(sys_lseek) 36 .long SYMBOL_NAME(sys_lseek)
37 .long SYMBOL_NAME(sys_getpid) /* 20 */ 37 .long SYMBOL_NAME(sys_getpid) /* 20 */
@@ -45,11 +45,11 @@ SYMBOL_NAME_LABEL(sys_call_table)
45 .long SYMBOL_NAME(sys_fstat) 45 .long SYMBOL_NAME(sys_fstat)
46 .long SYMBOL_NAME(sys_pause) 46 .long SYMBOL_NAME(sys_pause)
47 .long SYMBOL_NAME(sys_utime) /* 30 */ 47 .long SYMBOL_NAME(sys_utime) /* 30 */
48 .long SYMBOL_NAME(sys_ni_syscall) /* old stty syscall holder */ 48 .long SYMBOL_NAME(sys_ni_syscall) /* old stty syscall holder */
49 .long SYMBOL_NAME(sys_ni_syscall) /* old gtty syscall holder */ 49 .long SYMBOL_NAME(sys_ni_syscall) /* old gtty syscall holder */
50 .long SYMBOL_NAME(sys_access) 50 .long SYMBOL_NAME(sys_access)
51 .long SYMBOL_NAME(sys_nice) 51 .long SYMBOL_NAME(sys_nice)
52 .long SYMBOL_NAME(sys_ni_syscall) /* 35 */ /* old ftime syscall holder */ 52 .long SYMBOL_NAME(sys_ni_syscall) /* 35 old ftime syscall holder */
53 .long SYMBOL_NAME(sys_sync) 53 .long SYMBOL_NAME(sys_sync)
54 .long SYMBOL_NAME(sys_kill) 54 .long SYMBOL_NAME(sys_kill)
55 .long SYMBOL_NAME(sys_rename) 55 .long SYMBOL_NAME(sys_rename)
@@ -58,7 +58,7 @@ SYMBOL_NAME_LABEL(sys_call_table)
58 .long SYMBOL_NAME(sys_dup) 58 .long SYMBOL_NAME(sys_dup)
59 .long SYMBOL_NAME(sys_pipe) 59 .long SYMBOL_NAME(sys_pipe)
60 .long SYMBOL_NAME(sys_times) 60 .long SYMBOL_NAME(sys_times)
61 .long SYMBOL_NAME(sys_ni_syscall) /* old prof syscall holder */ 61 .long SYMBOL_NAME(sys_ni_syscall) /* old prof syscall holder */
62 .long SYMBOL_NAME(sys_brk) /* 45 */ 62 .long SYMBOL_NAME(sys_brk) /* 45 */
63 .long SYMBOL_NAME(sys_setgid16) 63 .long SYMBOL_NAME(sys_setgid16)
64 .long SYMBOL_NAME(sys_getgid16) 64 .long SYMBOL_NAME(sys_getgid16)
@@ -66,13 +66,13 @@ SYMBOL_NAME_LABEL(sys_call_table)
66 .long SYMBOL_NAME(sys_geteuid16) 66 .long SYMBOL_NAME(sys_geteuid16)
67 .long SYMBOL_NAME(sys_getegid16) /* 50 */ 67 .long SYMBOL_NAME(sys_getegid16) /* 50 */
68 .long SYMBOL_NAME(sys_acct) 68 .long SYMBOL_NAME(sys_acct)
69 .long SYMBOL_NAME(sys_umount) /* recycled never used phys() */ 69 .long SYMBOL_NAME(sys_umount) /* recycled never used phys() */
70 .long SYMBOL_NAME(sys_ni_syscall) /* old lock syscall holder */ 70 .long SYMBOL_NAME(sys_ni_syscall) /* old lock syscall holder */
71 .long SYMBOL_NAME(sys_ioctl) 71 .long SYMBOL_NAME(sys_ioctl)
72 .long SYMBOL_NAME(sys_fcntl) /* 55 */ 72 .long SYMBOL_NAME(sys_fcntl) /* 55 */
73 .long SYMBOL_NAME(sys_ni_syscall) /* old mpx syscall holder */ 73 .long SYMBOL_NAME(sys_ni_syscall) /* old mpx syscall holder */
74 .long SYMBOL_NAME(sys_setpgid) 74 .long SYMBOL_NAME(sys_setpgid)
75 .long SYMBOL_NAME(sys_ni_syscall) /* old ulimit syscall holder */ 75 .long SYMBOL_NAME(sys_ni_syscall) /* old ulimit syscall holder */
76 .long SYMBOL_NAME(sys_ni_syscall) 76 .long SYMBOL_NAME(sys_ni_syscall)
77 .long SYMBOL_NAME(sys_umask) /* 60 */ 77 .long SYMBOL_NAME(sys_umask) /* 60 */
78 .long SYMBOL_NAME(sys_chroot) 78 .long SYMBOL_NAME(sys_chroot)
@@ -112,7 +112,7 @@ SYMBOL_NAME_LABEL(sys_call_table)
112 .long SYMBOL_NAME(sys_fchown16) /* 95 */ 112 .long SYMBOL_NAME(sys_fchown16) /* 95 */
113 .long SYMBOL_NAME(sys_getpriority) 113 .long SYMBOL_NAME(sys_getpriority)
114 .long SYMBOL_NAME(sys_setpriority) 114 .long SYMBOL_NAME(sys_setpriority)
115 .long SYMBOL_NAME(sys_ni_syscall) /* old profil syscall holder */ 115 .long SYMBOL_NAME(sys_ni_syscall) /* old profil syscall holder */
116 .long SYMBOL_NAME(sys_statfs) 116 .long SYMBOL_NAME(sys_statfs)
117 .long SYMBOL_NAME(sys_fstatfs) /* 100 */ 117 .long SYMBOL_NAME(sys_fstatfs) /* 100 */
118 .long SYMBOL_NAME(sys_ni_syscall) /* ioperm for i386 */ 118 .long SYMBOL_NAME(sys_ni_syscall) /* ioperm for i386 */
@@ -202,8 +202,8 @@ SYMBOL_NAME_LABEL(sys_call_table)
202 .long SYMBOL_NAME(sys_capset) /* 185 */ 202 .long SYMBOL_NAME(sys_capset) /* 185 */
203 .long SYMBOL_NAME(sys_sigaltstack) 203 .long SYMBOL_NAME(sys_sigaltstack)
204 .long SYMBOL_NAME(sys_sendfile) 204 .long SYMBOL_NAME(sys_sendfile)
205 .long SYMBOL_NAME(sys_ni_syscall) /* streams1 */ 205 .long SYMBOL_NAME(sys_ni_syscall) /* streams1 */
206 .long SYMBOL_NAME(sys_ni_syscall) /* streams2 */ 206 .long SYMBOL_NAME(sys_ni_syscall) /* streams2 */
207 .long SYMBOL_NAME(sys_vfork) /* 190 */ 207 .long SYMBOL_NAME(sys_vfork) /* 190 */
208 .long SYMBOL_NAME(sys_getrlimit) 208 .long SYMBOL_NAME(sys_getrlimit)
209 .long SYMBOL_NAME(sys_mmap2) 209 .long SYMBOL_NAME(sys_mmap2)
@@ -236,10 +236,10 @@ SYMBOL_NAME_LABEL(sys_call_table)
236 .long SYMBOL_NAME(sys_ni_syscall) 236 .long SYMBOL_NAME(sys_ni_syscall)
237 .long SYMBOL_NAME(sys_getdents64) /* 220 */ 237 .long SYMBOL_NAME(sys_getdents64) /* 220 */
238 .long SYMBOL_NAME(sys_fcntl64) 238 .long SYMBOL_NAME(sys_fcntl64)
239 .long SYMBOL_NAME(sys_ni_syscall) /* reserved for TUX */ 239 .long SYMBOL_NAME(sys_ni_syscall) /* reserved TUX */
240 .long SYMBOL_NAME(sys_ni_syscall) 240 .long SYMBOL_NAME(sys_ni_syscall) /* reserved Security */
241 .long SYMBOL_NAME(sys_gettid) 241 .long SYMBOL_NAME(sys_gettid)
242 .long SYMBOL_NAME(sys_ni_syscall) /* 225 */ /* sys_readahead */ 242 .long SYMBOL_NAME(sys_readahead) /* 225 */
243 .long SYMBOL_NAME(sys_setxattr) 243 .long SYMBOL_NAME(sys_setxattr)
244 .long SYMBOL_NAME(sys_lsetxattr) 244 .long SYMBOL_NAME(sys_lsetxattr)
245 .long SYMBOL_NAME(sys_fsetxattr) 245 .long SYMBOL_NAME(sys_fsetxattr)
@@ -257,8 +257,8 @@ SYMBOL_NAME_LABEL(sys_call_table)
257 .long SYMBOL_NAME(sys_futex) /* 240 */ 257 .long SYMBOL_NAME(sys_futex) /* 240 */
258 .long SYMBOL_NAME(sys_sched_setaffinity) 258 .long SYMBOL_NAME(sys_sched_setaffinity)
259 .long SYMBOL_NAME(sys_sched_getaffinity) 259 .long SYMBOL_NAME(sys_sched_getaffinity)
260 .long SYMBOL_NAME(sys_ni_syscall) /* sys_set_thread_area */ 260 .long SYMBOL_NAME(sys_ni_syscall)
261 .long SYMBOL_NAME(sys_ni_syscall) /* sys_get_thread_area */ 261 .long SYMBOL_NAME(sys_ni_syscall)
262 .long SYMBOL_NAME(sys_io_setup) /* 245 */ 262 .long SYMBOL_NAME(sys_io_setup) /* 245 */
263 .long SYMBOL_NAME(sys_io_destroy) 263 .long SYMBOL_NAME(sys_io_destroy)
264 .long SYMBOL_NAME(sys_io_getevents) 264 .long SYMBOL_NAME(sys_io_getevents)
@@ -288,8 +288,8 @@ SYMBOL_NAME_LABEL(sys_call_table)
288 .long SYMBOL_NAME(sys_utimes) 288 .long SYMBOL_NAME(sys_utimes)
289 .long SYMBOL_NAME(sys_fadvise64_64) 289 .long SYMBOL_NAME(sys_fadvise64_64)
290 .long SYMBOL_NAME(sys_ni_syscall) /* sys_vserver */ 290 .long SYMBOL_NAME(sys_ni_syscall) /* sys_vserver */
291 .long SYMBOL_NAME(sys_mbind) 291 .long SYMBOL_NAME(sys_ni_syscall)
292 .long SYMBOL_NAME(sys_get_mempolicy) 292 .long SYMBOL_NAME(sys_get_mempolicy) /* 275 */
293 .long SYMBOL_NAME(sys_set_mempolicy) 293 .long SYMBOL_NAME(sys_set_mempolicy)
294 .long SYMBOL_NAME(sys_mq_open) 294 .long SYMBOL_NAME(sys_mq_open)
295 .long SYMBOL_NAME(sys_mq_unlink) 295 .long SYMBOL_NAME(sys_mq_unlink)
@@ -297,16 +297,42 @@ SYMBOL_NAME_LABEL(sys_call_table)
297 .long SYMBOL_NAME(sys_mq_timedreceive) /* 280 */ 297 .long SYMBOL_NAME(sys_mq_timedreceive) /* 280 */
298 .long SYMBOL_NAME(sys_mq_notify) 298 .long SYMBOL_NAME(sys_mq_notify)
299 .long SYMBOL_NAME(sys_mq_getsetattr) 299 .long SYMBOL_NAME(sys_mq_getsetattr)
300 .long SYMBOL_NAME(sys_ni_syscall) /* reserved for kexec */
301 .long SYMBOL_NAME(sys_waitid) 300 .long SYMBOL_NAME(sys_waitid)
302 .long SYMBOL_NAME(sys_ni_syscall) /* 285 */ /* available */ 301 .long SYMBOL_NAME(sys_ni_syscall) /* sys_kexec_load */
303 .long SYMBOL_NAME(sys_add_key) 302 .long SYMBOL_NAME(sys_add_key) /* 285 */
304 .long SYMBOL_NAME(sys_request_key) 303 .long SYMBOL_NAME(sys_request_key)
305 .long SYMBOL_NAME(sys_keyctl) 304 .long SYMBOL_NAME(sys_keyctl)
306 305 .long SYMBOL_NAME(sys_ioprio_set)
307 .rept NR_syscalls-(.-SYMBOL_NAME(sys_call_table))/4 306 .long SYMBOL_NAME(sys_ioprio_get) /* 290 */
308 .long SYMBOL_NAME(sys_ni_syscall) 307 .long SYMBOL_NAME(sys_inotify_init)
309 .endr 308 .long SYMBOL_NAME(sys_inotify_add_watch)
309 .long SYMBOL_NAME(sys_inotify_rm_watch)
310 .long SYMBOL_NAME(sys_migrate_pages)
311 .long SYMBOL_NAME(sys_openat) /* 295 */
312 .long SYMBOL_NAME(sys_mkdirat)
313 .long SYMBOL_NAME(sys_mknodat)
314 .long SYMBOL_NAME(sys_fchownat)
315 .long SYMBOL_NAME(sys_futimesat)
316 .long SYMBOL_NAME(sys_fstatat64) /* 300 */
317 .long SYMBOL_NAME(sys_unlinkat)
318 .long SYMBOL_NAME(sys_renameat)
319 .long SYMBOL_NAME(sys_linkat)
320 .long SYMBOL_NAME(sys_symlinkat)
321 .long SYMBOL_NAME(sys_readlinkat) /* 305 */
322 .long SYMBOL_NAME(sys_fchmodat)
323 .long SYMBOL_NAME(sys_faccessat)
324 .long SYMBOL_NAME(sys_ni_syscall) /* sys_pselect6 */
325 .long SYMBOL_NAME(sys_ni_syscall) /* sys_ppoll */
326 .long SYMBOL_NAME(sys_unshare) /* 310 */
327 .long SYMBOL_NAME(sys_set_robust_list)
328 .long SYMBOL_NAME(sys_get_robust_list)
329 .long SYMBOL_NAME(sys_splice)
330 .long SYMBOL_NAME(sys_sync_file_range)
331 .long SYMBOL_NAME(sys_tee) /* 315 */
332 .long SYMBOL_NAME(sys_vmsplice)
333 .long SYMBOL_NAME(sys_ni_syscall) /* sys_move_pages */
334 .long SYMBOL_NAME(sys_getcpu)
335 .long SYMBOL_NAME(sys_ni_syscall) /* sys_epoll_pwait */
310 336
311 .macro call_sp addr 337 .macro call_sp addr
312 mov.l #SYMBOL_NAME(\addr),er6 338 mov.l #SYMBOL_NAME(\addr),er6
diff --git a/include/asm-h8300/unistd.h b/include/asm-h8300/unistd.h
index 7ddd414f8d16..99f3c3561ecb 100644
--- a/include/asm-h8300/unistd.h
+++ b/include/asm-h8300/unistd.h
@@ -21,7 +21,7 @@
21#define __NR_time 13 21#define __NR_time 13
22#define __NR_mknod 14 22#define __NR_mknod 14
23#define __NR_chmod 15 23#define __NR_chmod 15
24#define __NR_chown 16 24#define __NR_lchown 16
25#define __NR_break 17 25#define __NR_break 17
26#define __NR_oldstat 18 26#define __NR_oldstat 18
27#define __NR_lseek 19 27#define __NR_lseek 19
@@ -115,10 +115,10 @@
115#define __NR_lstat 107 115#define __NR_lstat 107
116#define __NR_fstat 108 116#define __NR_fstat 108
117#define __NR_olduname 109 117#define __NR_olduname 109
118#define __NR_iopl /* 110 */ not supported 118#define __NR_iopl 110
119#define __NR_vhangup 111 119#define __NR_vhangup 111
120#define __NR_idle /* 112 */ Obsolete 120#define __NR_idle 112
121#define __NR_vm86 /* 113 */ not supported 121#define __NR_vm86old 113
122#define __NR_wait4 114 122#define __NR_wait4 114
123#define __NR_swapoff 115 123#define __NR_swapoff 115
124#define __NR_sysinfo 116 124#define __NR_sysinfo 116
@@ -128,7 +128,7 @@
128#define __NR_clone 120 128#define __NR_clone 120
129#define __NR_setdomainname 121 129#define __NR_setdomainname 121
130#define __NR_uname 122 130#define __NR_uname 122
131#define __NR_cacheflush 123 131#define __NR_modify_ldt 123
132#define __NR_adjtimex 124 132#define __NR_adjtimex 124
133#define __NR_mprotect 125 133#define __NR_mprotect 125
134#define __NR_sigprocmask 126 134#define __NR_sigprocmask 126
@@ -171,7 +171,7 @@
171#define __NR_mremap 163 171#define __NR_mremap 163
172#define __NR_setresuid 164 172#define __NR_setresuid 164
173#define __NR_getresuid 165 173#define __NR_getresuid 165
174#define __NR_getpagesize 166 174#define __NR_vm86 166
175#define __NR_query_module 167 175#define __NR_query_module 167
176#define __NR_poll 168 176#define __NR_poll 168
177#define __NR_nfsservctl 169 177#define __NR_nfsservctl 169
@@ -187,7 +187,7 @@
187#define __NR_rt_sigsuspend 179 187#define __NR_rt_sigsuspend 179
188#define __NR_pread64 180 188#define __NR_pread64 180
189#define __NR_pwrite64 181 189#define __NR_pwrite64 181
190#define __NR_lchown 182 190#define __NR_chown 182
191#define __NR_getcwd 183 191#define __NR_getcwd 183
192#define __NR_capget 184 192#define __NR_capget 184
193#define __NR_capset 185 193#define __NR_capset 185
@@ -203,7 +203,7 @@
203#define __NR_stat64 195 203#define __NR_stat64 195
204#define __NR_lstat64 196 204#define __NR_lstat64 196
205#define __NR_fstat64 197 205#define __NR_fstat64 197
206#define __NR_chown32 198 206#define __NR_lchown32 198
207#define __NR_getuid32 199 207#define __NR_getuid32 199
208#define __NR_getgid32 200 208#define __NR_getgid32 200
209#define __NR_geteuid32 201 209#define __NR_geteuid32 201
@@ -217,15 +217,18 @@
217#define __NR_getresuid32 209 217#define __NR_getresuid32 209
218#define __NR_setresgid32 210 218#define __NR_setresgid32 210
219#define __NR_getresgid32 211 219#define __NR_getresgid32 211
220#define __NR_lchown32 212 220#define __NR_chown32 212
221#define __NR_setuid32 213 221#define __NR_setuid32 213
222#define __NR_setgid32 214 222#define __NR_setgid32 214
223#define __NR_setfsuid32 215 223#define __NR_setfsuid32 215
224#define __NR_setfsgid32 216 224#define __NR_setfsgid32 216
225#define __NR_pivot_root 217 225#define __NR_pivot_root 217
226#define __NR_mincore 218
227#define __NR_madvise 219
228#define __NR_madvise1 219
226#define __NR_getdents64 220 229#define __NR_getdents64 220
227#define __NR_fcntl64 221 230#define __NR_fcntl64 221
228#define __NR_security 223 231/* 223 is unused */
229#define __NR_gettid 224 232#define __NR_gettid 224
230#define __NR_readahead 225 233#define __NR_readahead 225
231#define __NR_setxattr 226 234#define __NR_setxattr 226
@@ -252,13 +255,13 @@
252#define __NR_io_getevents 247 255#define __NR_io_getevents 247
253#define __NR_io_submit 248 256#define __NR_io_submit 248
254#define __NR_io_cancel 249 257#define __NR_io_cancel 249
255#define __NR_alloc_hugepages 250 258#define __NR_fadvise64 250
256#define __NR_free_hugepages 251 259/* 251 is available for reuse (was briefly sys_set_zone_reclaim) */
257#define __NR_exit_group 252 260#define __NR_exit_group 252
258#define __NR_lookup_dcookie 253 261#define __NR_lookup_dcookie 253
259#define __NR_sys_epoll_create 254 262#define __NR_epoll_create 254
260#define __NR_sys_epoll_ctl 255 263#define __NR_epoll_ctl 255
261#define __NR_sys_epoll_wait 256 264#define __NR_epoll_wait 256
262#define __NR_remap_file_pages 257 265#define __NR_remap_file_pages 257
263#define __NR_set_tid_address 258 266#define __NR_set_tid_address 258
264#define __NR_timer_create 259 267#define __NR_timer_create 259
@@ -291,10 +294,41 @@
291#define __NR_add_key 286 294#define __NR_add_key 286
292#define __NR_request_key 287 295#define __NR_request_key 287
293#define __NR_keyctl 288 296#define __NR_keyctl 288
297#define __NR_ioprio_set 289
298#define __NR_ioprio_get 290
299#define __NR_inotify_init 291
300#define __NR_inotify_add_watch 292
301#define __NR_inotify_rm_watch 293
302#define __NR_migrate_pages 294
303#define __NR_openat 295
304#define __NR_mkdirat 296
305#define __NR_mknodat 297
306#define __NR_fchownat 298
307#define __NR_futimesat 299
308#define __NR_fstatat64 300
309#define __NR_unlinkat 301
310#define __NR_renameat 302
311#define __NR_linkat 303
312#define __NR_symlinkat 304
313#define __NR_readlinkat 305
314#define __NR_fchmodat 306
315#define __NR_faccessat 307
316#define __NR_pselect6 308
317#define __NR_ppoll 309
318#define __NR_unshare 310
319#define __NR_set_robust_list 311
320#define __NR_get_robust_list 312
321#define __NR_splice 313
322#define __NR_sync_file_range 314
323#define __NR_tee 315
324#define __NR_vmsplice 316
325#define __NR_move_pages 317
326#define __NR_getcpu 318
327#define __NR_epoll_pwait 319
294 328
295#ifdef __KERNEL__ 329#ifdef __KERNEL__
296 330
297#define NR_syscalls 289 331#define NR_syscalls 320
298 332
299#define __ARCH_WANT_IPC_PARSE_VERSION 333#define __ARCH_WANT_IPC_PARSE_VERSION
300#define __ARCH_WANT_OLD_READDIR 334#define __ARCH_WANT_OLD_READDIR