diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-03-05 16:40:24 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-03-05 18:35:18 -0500 |
commit | e7084fd52ed71249ab2ce7a7d89d601c9d1f904c (patch) | |
tree | 354bdaa09b665f4e6d01ffdab2a26f8ceca9d630 /arch/x86/syscalls | |
parent | a628b684d27d22631d1819890f13047ae9075241 (diff) |
x32: Switch to a 64-bit clock_t
clock_t is used mainly to give the number of jiffies a certain process
has burned. It is entirely feasible for a long-running process to
consume more than 2^32 jiffies especially in a multiprocess system.
As such, switch to a 64-bit clock_t for x32, just as we already
switched to a 64-bit time_t.
clock_t is only used in a handful of places, and as such it is really
not a very significant change. The one that has the biggest impact is
in struct siginfo, but since the *size* of struct siginfo doesn't
change (it is padded to the hilt) it is fairly easy to make this a
localized change.
This also gets rid of sys_x32_times, however since this is a pretty
late change don't compactify the system call numbers; we can reuse
system call slot 521 next time we need an x32 system call.
Reported-by: Gregory M. Lueck <gregory.m.lueck@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: H. J. Lu <hjl.tools@gmail.com>
Link: http://lkml.kernel.org/r/1329696488-16970-1-git-send-email-hpa@zytor.com
Diffstat (limited to 'arch/x86/syscalls')
-rw-r--r-- | arch/x86/syscalls/syscall_64.tbl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl index 4aecc7e31166..0d778b800884 100644 --- a/arch/x86/syscalls/syscall_64.tbl +++ b/arch/x86/syscalls/syscall_64.tbl | |||
@@ -106,7 +106,7 @@ | |||
106 | 97 common getrlimit sys_getrlimit | 106 | 97 common getrlimit sys_getrlimit |
107 | 98 common getrusage sys_getrusage | 107 | 98 common getrusage sys_getrusage |
108 | 99 common sysinfo sys_sysinfo | 108 | 99 common sysinfo sys_sysinfo |
109 | 100 64 times sys_times | 109 | 100 common times sys_times |
110 | 101 common ptrace sys_ptrace | 110 | 101 common ptrace sys_ptrace |
111 | 102 common getuid sys_getuid | 111 | 102 common getuid sys_getuid |
112 | 103 common syslog sys_syslog | 112 | 103 common syslog sys_syslog |
@@ -331,7 +331,7 @@ | |||
331 | 518 x32 sendmsg compat_sys_sendmsg | 331 | 518 x32 sendmsg compat_sys_sendmsg |
332 | 519 x32 recvmsg compat_sys_recvmsg | 332 | 519 x32 recvmsg compat_sys_recvmsg |
333 | 520 x32 execve stub_x32_execve | 333 | 520 x32 execve stub_x32_execve |
334 | 521 x32 times compat_sys_times | 334 | # 521 available |
335 | 522 x32 rt_sigpending sys32_rt_sigpending | 335 | 522 x32 rt_sigpending sys32_rt_sigpending |
336 | 523 x32 rt_sigtimedwait compat_sys_rt_sigtimedwait | 336 | 523 x32 rt_sigtimedwait compat_sys_rt_sigtimedwait |
337 | 524 x32 rt_sigqueueinfo sys32_rt_sigqueueinfo | 337 | 524 x32 rt_sigqueueinfo sys32_rt_sigqueueinfo |