diff options
| author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2005-05-01 11:58:55 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 11:58:55 -0400 |
| commit | 80f9507886076de0cadfdf2b87701e68156829c2 (patch) | |
| tree | d9830aeda24b0a004938bae36db3e8efba84b7db /arch/um/include/sysdep-x86_64 | |
| parent | ddcd6b175793839e51fdd55debb670a9f512c448 (diff) | |
[PATCH] uml: fix syscall table by including $(SUBARCH)'s one, for x86-64
Reuse asm-x86-64/unistd.h to build our syscall table, like x86-64 already
does.
Like for i386, we must add some #defines for all the (right!) changes UML does
to x86-64 syscall table.
Note: I noted a bogus:
[ __NR_sched_yield ] = (syscall_handler_t *) yield,
while doing this patch (which could only be a workaround for some strange bug,
but I would ignore this possibility). I'm changing this without notice.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/include/sysdep-x86_64')
| -rw-r--r-- | arch/um/include/sysdep-x86_64/syscalls.h | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/arch/um/include/sysdep-x86_64/syscalls.h b/arch/um/include/sysdep-x86_64/syscalls.h index 65a01e3d8707..b56b335c3514 100644 --- a/arch/um/include/sysdep-x86_64/syscalls.h +++ b/arch/um/include/sysdep-x86_64/syscalls.h | |||
| @@ -30,51 +30,6 @@ extern syscall_handler_t wrap_sys_shmat; | |||
| 30 | extern syscall_handler_t sys_modify_ldt; | 30 | extern syscall_handler_t sys_modify_ldt; |
| 31 | extern syscall_handler_t sys_arch_prctl; | 31 | extern syscall_handler_t sys_arch_prctl; |
| 32 | 32 | ||
| 33 | #define ARCH_SYSCALLS \ | 33 | #define NR_syscalls (__NR_syscall_max + 1) |
| 34 | [ __NR_mmap ] = (syscall_handler_t *) old_mmap, \ | ||
| 35 | [ __NR_select ] = (syscall_handler_t *) sys_select, \ | ||
| 36 | [ __NR_mincore ] = (syscall_handler_t *) sys_mincore, \ | ||
| 37 | [ __NR_madvise ] = (syscall_handler_t *) sys_madvise, \ | ||
| 38 | [ __NR_shmget ] = (syscall_handler_t *) sys_shmget, \ | ||
| 39 | [ __NR_shmat ] = (syscall_handler_t *) wrap_sys_shmat, \ | ||
| 40 | [ __NR_shmctl ] = (syscall_handler_t *) sys_shmctl, \ | ||
| 41 | [ __NR_semop ] = (syscall_handler_t *) sys_semop, \ | ||
| 42 | [ __NR_semget ] = (syscall_handler_t *) sys_semget, \ | ||
| 43 | [ __NR_semctl ] = (syscall_handler_t *) sys_semctl, \ | ||
| 44 | [ __NR_shmdt ] = (syscall_handler_t *) sys_shmdt, \ | ||
| 45 | [ __NR_msgget ] = (syscall_handler_t *) sys_msgget, \ | ||
| 46 | [ __NR_msgsnd ] = (syscall_handler_t *) sys_msgsnd, \ | ||
| 47 | [ __NR_msgrcv ] = (syscall_handler_t *) sys_msgrcv, \ | ||
| 48 | [ __NR_msgctl ] = (syscall_handler_t *) sys_msgctl, \ | ||
| 49 | [ __NR_pivot_root ] = (syscall_handler_t *) sys_pivot_root, \ | ||
| 50 | [ __NR_tuxcall ] = (syscall_handler_t *) sys_ni_syscall, \ | ||
| 51 | [ __NR_security ] = (syscall_handler_t *) sys_ni_syscall, \ | ||
| 52 | [ __NR_epoll_ctl_old ] = (syscall_handler_t *) sys_ni_syscall, \ | ||
| 53 | [ __NR_epoll_wait_old ] = (syscall_handler_t *) sys_ni_syscall, \ | ||
| 54 | [ __NR_modify_ldt ] = (syscall_handler_t *) sys_modify_ldt, \ | ||
| 55 | [ __NR_arch_prctl ] = (syscall_handler_t *) sys_arch_prctl, \ | ||
| 56 | [ __NR_socket ] = (syscall_handler_t *) sys_socket, \ | ||
| 57 | [ __NR_connect ] = (syscall_handler_t *) sys_connect, \ | ||
| 58 | [ __NR_accept ] = (syscall_handler_t *) sys_accept, \ | ||
| 59 | [ __NR_recvfrom ] = (syscall_handler_t *) sys_recvfrom, \ | ||
| 60 | [ __NR_recvmsg ] = (syscall_handler_t *) sys_recvmsg, \ | ||
| 61 | [ __NR_sendmsg ] = (syscall_handler_t *) sys_sendmsg, \ | ||
| 62 | [ __NR_bind ] = (syscall_handler_t *) sys_bind, \ | ||
| 63 | [ __NR_listen ] = (syscall_handler_t *) sys_listen, \ | ||
| 64 | [ __NR_getsockname ] = (syscall_handler_t *) sys_getsockname, \ | ||
| 65 | [ __NR_getpeername ] = (syscall_handler_t *) sys_getpeername, \ | ||
| 66 | [ __NR_socketpair ] = (syscall_handler_t *) sys_socketpair, \ | ||
| 67 | [ __NR_sendto ] = (syscall_handler_t *) sys_sendto, \ | ||
| 68 | [ __NR_shutdown ] = (syscall_handler_t *) sys_shutdown, \ | ||
| 69 | [ __NR_setsockopt ] = (syscall_handler_t *) sys_setsockopt, \ | ||
| 70 | [ __NR_getsockopt ] = (syscall_handler_t *) sys_getsockopt, \ | ||
| 71 | [ __NR_iopl ] = (syscall_handler_t *) sys_ni_syscall, \ | ||
| 72 | [ __NR_set_thread_area ] = (syscall_handler_t *) sys_ni_syscall, \ | ||
| 73 | [ __NR_get_thread_area ] = (syscall_handler_t *) sys_ni_syscall, \ | ||
| 74 | [ __NR_semtimedop ] = (syscall_handler_t *) sys_semtimedop, \ | ||
| 75 | [ 251 ] = (syscall_handler_t *) sys_ni_syscall, | ||
| 76 | |||
| 77 | #define LAST_ARCH_SYSCALL 251 | ||
| 78 | #define NR_syscalls 1024 | ||
| 79 | 34 | ||
| 80 | #endif | 35 | #endif |
