Chris Metcalf
be84cb4383
compat: fixes to allow working with tile arch
...
The existing <asm-generic/unistd.h> mechanism doesn't really provide
enough to create the 64-bit "compat" ABI properly in a generic way,
since the compat ABI is a mix of things were you can re-use the 64-bit
versions of syscalls and things where you need a compat wrapper.
To provide this in the most direct way possible, I added two new macros
to go along with the existing __SYSCALL and __SC_3264 macros: __SC_COMP
and SC_COMP_3264. These macros take an additional argument, typically a
"compat_sys_xxx" function, which is passed to __SYSCALL if you define
__SYSCALL_COMPAT when including the header, resulting in a pointer to
the compat function being placed in the generated syscall table.
The change also adds some missing definitions to <linux/compat.h> so that
it actually has declarations for all the compat syscalls, since the
"[nr] = ##call" approach requires proper C declarations for all the
functions included in the syscall table.
Finally, compat.c defines compat_sys_sigpending() and
compat_sys_sigprocmask() even if the underlying architecture doesn't
request it, which tries to pull in undefined compat_old_sigset_t defines.
We need to guard those compat syscall definitions with appropriate
__ARCH_WANT_SYS_xxx ifdefs.
Acked-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com >
2011-05-12 15:51:36 -04:00
..
2011-03-31 11:26:23 -03:00
2011-04-11 07:27:24 -07:00
2011-03-29 12:11:16 -07:00
2011-03-31 11:26:23 -03:00
2011-03-23 10:42:00 +01:00
2011-04-18 10:15:43 -07:00
2011-03-31 11:26:23 -03:00
2011-04-12 11:13:00 +02:00
2011-03-23 12:24:23 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-11 07:27:24 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-26 14:15:06 +00:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-14 00:22:27 -07:00
2011-03-31 11:26:23 -03:00
2011-03-21 22:59:08 -04:00
2011-03-30 16:53:38 -07:00
2011-03-22 17:43:59 -07:00
2011-04-25 18:10:58 -07:00
2011-04-19 13:32:46 +02:00
2011-03-23 19:47:19 -07:00
2011-03-23 19:47:06 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-22 17:44:00 -07:00
2011-05-12 15:51:36 -04:00
2011-03-22 17:44:10 -07:00
2011-03-22 17:44:10 -07:00
2011-03-22 17:44:10 -07:00
2011-03-31 11:26:23 -03:00
2011-03-30 17:14:33 -07:00
2011-03-31 11:26:23 -03:00
2011-03-22 17:44:15 -07:00
2011-03-23 19:47:02 -07:00
2011-03-22 19:25:05 -07:00
2011-04-24 07:58:46 -07:00
2011-04-18 18:25:41 +10:00
2011-03-23 22:16:41 +01:00
2011-03-24 13:54:30 +00:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-05 23:51:37 +02:00
2011-03-22 17:44:11 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:46:17 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-21 10:05:22 -07:00
2011-04-12 15:21:04 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-22 08:35:35 +01:00
2011-03-22 17:44:05 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-20 14:50:53 +01:00
2011-03-31 11:26:23 -03:00
2011-03-18 15:14:45 -07:00
2011-04-18 13:29:03 -07:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:47:08 -07:00
2011-03-31 11:26:23 -03:00
2011-03-30 00:37:41 +02:00
2011-03-29 14:48:19 +02:00
2011-03-31 11:26:23 -03:00
2011-03-20 21:13:43 -04:00
2011-03-31 11:26:23 -03:00
2011-03-20 20:08:48 -04:00
2011-03-24 08:36:10 +01:00
2011-03-22 16:17:32 -07:00
2011-03-22 04:53:54 -03:00
2011-03-22 17:44:14 -07:00
2011-04-01 16:14:30 +11:00
2011-03-22 17:44:01 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-25 21:00:29 -07:00
2011-04-24 11:32:16 -04:00
2011-04-25 18:14:10 -07:00
2011-03-31 11:26:23 -03:00
2011-03-18 22:33:38 -07:00
2011-03-22 04:53:56 -03:00
2011-04-14 16:06:54 -07:00
2011-03-22 17:44:03 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-01 20:23:25 -07:00
2011-04-04 17:00:54 +02:00
2011-03-31 11:26:23 -03:00
2011-03-23 15:29:04 -04:00
2011-03-27 17:48:07 +02:00
2011-03-24 17:03:14 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-23 14:55:56 -06:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-22 17:44:03 -07:00
2011-03-24 10:16:26 -07:00
2011-03-31 08:51:38 +02:00
2011-03-31 11:26:23 -03:00
2011-03-21 09:40:43 -07:00
2011-03-21 09:38:02 -07:00
2011-04-07 11:14:49 -07:00
2011-04-18 10:35:30 -07:00
2011-03-31 11:26:23 -03:00
2011-04-12 11:13:00 +02:00
2011-03-23 22:16:41 +01:00
2011-03-31 11:26:23 -03:00
2011-04-18 10:39:38 +02:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:46:37 -07:00
2011-03-22 17:44:00 -07:00
2011-03-31 11:26:23 -03:00
2011-03-24 21:16:31 -04:00
2011-04-01 07:27:31 -07:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:46:23 -07:00
2011-03-23 19:46:41 -07:00
2011-04-14 16:06:56 -07:00
2011-04-14 16:06:56 -07:00
2011-03-22 17:44:03 -07:00
2011-03-29 18:44:05 -07:00
2011-04-14 16:06:55 -07:00
2011-04-22 16:17:29 -07:00
2011-03-22 17:44:15 -07:00
2011-04-07 11:14:49 -07:00
2011-03-22 20:48:04 +02:00
2011-03-22 17:16:34 +09:00
2011-03-31 11:26:23 -03:00
2011-03-23 07:48:42 -07:00
2011-03-31 11:26:23 -03:00
2011-03-28 06:05:24 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-11 22:54:42 +02:00
2011-03-22 15:47:22 +09:00
2011-03-24 10:16:26 -07:00
2011-03-21 00:40:29 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-22 16:17:32 -07:00
2011-03-22 17:44:09 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:47:03 -07:00
2011-03-31 11:26:23 -03:00
2011-03-22 04:53:37 -03:00
2011-03-22 04:53:33 -03:00
2011-03-31 11:26:23 -03:00
2011-03-22 04:54:51 -03:00
2011-03-28 12:53:29 +01:00
2011-04-14 16:06:55 -07:00
2011-03-31 11:26:23 -03:00
2011-03-24 21:17:51 -04:00
2011-03-31 11:26:23 -03:00
2011-03-22 17:44:17 -07:00