From 3a9c4b2d2b63b839b53e0983813efb46b592a94a Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Sun, 23 Feb 2003 17:17:19 +1100 Subject: [PATCH] ppc64: Add posix timer syscalls --- arch/ppc64/kernel/misc.S | 8 -------- include/asm-ppc64/unistd.h | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/arch/ppc64/kernel/misc.S b/arch/ppc64/kernel/misc.S index ed316c4f66357..4f9ce4a3cce29 100644 --- a/arch/ppc64/kernel/misc.S +++ b/arch/ppc64/kernel/misc.S @@ -743,10 +743,6 @@ _GLOBAL(sys_call_table32) .llong .sys_epoll_wait .llong .sys_remap_file_pages - .rept NR_syscalls-239 - .llong .sys_ni_syscall - .endr - .balign 8 _GLOBAL(sys_call_table) .llong .sys_restart_syscall /* 0 */ @@ -989,7 +985,3 @@ _GLOBAL(sys_call_table) .llong .sys_epoll_ctl .llong .sys_epoll_wait .llong .sys_remap_file_pages - - .rept NR_syscalls-239 - .llong .sys_ni_syscall - .endr diff --git a/include/asm-ppc64/unistd.h b/include/asm-ppc64/unistd.h index f4d465ae4f173..51f51d35ace6a 100644 --- a/include/asm-ppc64/unistd.h +++ b/include/asm-ppc64/unistd.h @@ -250,10 +250,23 @@ #define __NR_sys_epoll_ctl 237 #define __NR_sys_epoll_wait 238 #define __NR_remap_file_pages 239 +#define __NR_timer_create 240 +#define __NR_timer_settime 241 +#define __NR_timer_gettime 242 +#define __NR_timer_getoverrun 243 +#define __NR_timer_delete 244 +#define __NR_clock_settime 245 +#define __NR_clock_gettime 246 +#define __NR_clock_getres 247 +#define __NR_clock_nanosleep 248 -#define NR_syscalls 260 +#define __NR_syscalls 249 +#ifdef __KERNEL__ +#define NR_syscalls __NR_syscalls +#endif #ifndef __ASSEMBLY__ + #ifdef __KERNEL_SYSCALLS__ /* -- 2.53.0