Unverified Commit 5524656d by Christian Brauner Committed by Stéphane Graber

syscall_numbers: handle ia64 syscall numbers correctly

They are offset by 1024. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent de4d585e
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_keyctl 283 #define __NR_keyctl 283
#elif defined __ia64__ #elif defined __ia64__
#define __NR_keyctl 249 #define __NR_keyctl (249 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_keyctl 4282 #define __NR_keyctl 4282
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_pivot_root 146 #define __NR_pivot_root 146
#elif defined __ia64__ #elif defined __ia64__
#define __NR_pivot_root 183 #define __NR_pivot_root (183 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_pivot_root 4216 #define __NR_pivot_root 4216
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_setns 337 #define __NR_setns 337
#elif defined __ia64__ #elif defined __ia64__
#define __NR_setns 306 #define __NR_setns (306 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_setns 4344 #define __NR_setns 4344
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_sethostname 88 #define __NR_sethostname 88
#elif defined __ia64__ #elif defined __ia64__
#define __NR_sethostname 59 #define __NR_sethostname (59 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_sethostname 474 #define __NR_sethostname 474
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_signalfd 311 #define __NR_signalfd 311
#elif defined __ia64__ #elif defined __ia64__
#define __NR_signalfd 283 #define __NR_signalfd (283 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_signalfd 4317 #define __NR_signalfd 4317
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_signalfd4 317 #define __NR_signalfd4 317
#elif defined __ia64__ #elif defined __ia64__
#define __NR_signalfd4 289 #define __NR_signalfd4 (289 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_signalfd4 4324 #define __NR_signalfd4 4324
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_unshare 299 #define __NR_unshare 299
#elif defined __ia64__ #elif defined __ia64__
#define __NR_unshare 272 #define __NR_unshare (272 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_unshare 4303 #define __NR_unshare 4303
...@@ -322,7 +322,7 @@ ...@@ -322,7 +322,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_bpf 349 #define __NR_bpf 349
#elif defined __ia64__ #elif defined __ia64__
#define __NR_bpf 317 #define __NR_bpf (317 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_bpf 4355 #define __NR_bpf 4355
...@@ -357,7 +357,7 @@ ...@@ -357,7 +357,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_faccessat 296 #define __NR_faccessat 296
#elif defined __ia64__ #elif defined __ia64__
#define __NR_faccessat 269 #define __NR_faccessat (269 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_faccessat 4300 #define __NR_faccessat 4300
...@@ -387,6 +387,8 @@ ...@@ -387,6 +387,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_pidfd_send_signal 5424 #define __NR_pidfd_send_signal 5424
#endif #endif
#elif defined __ia64__
#define __NR_pidfd_send_signal (424 + 1024)
#else #else
#define __NR_pidfd_send_signal 424 #define __NR_pidfd_send_signal 424
#endif #endif
...@@ -410,7 +412,7 @@ ...@@ -410,7 +412,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_seccomp 346 #define __NR_seccomp 346
#elif defined __ia64__ #elif defined __ia64__
#define __NR_seccomp 329 #define __NR_seccomp (329 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_seccomp 4352 #define __NR_seccomp 4352
...@@ -445,7 +447,7 @@ ...@@ -445,7 +447,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_gettid 143 #define __NR_gettid 143
#elif defined __ia64__ #elif defined __ia64__
#define __NR_gettid 81 #define __NR_gettid (81 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_gettid 4222 #define __NR_gettid 4222
...@@ -484,7 +486,7 @@ ...@@ -484,7 +486,7 @@
#elif defined __sparc__ #elif defined __sparc__
#define __NR_execveat 350 #define __NR_execveat 350
#elif defined __ia64__ #elif defined __ia64__
#define __NR_execveat 318 #define __NR_execveat (318 + 1024)
#elif defined _MIPS_SIM #elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_execveat 4356 #define __NR_execveat 4356
...@@ -514,6 +516,8 @@ ...@@ -514,6 +516,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_move_mount 5429 #define __NR_move_mount 5429
#endif #endif
#elif defined __ia64__
#define __NR_move_mount (428 + 1024)
#else #else
#define __NR_move_mount 429 #define __NR_move_mount 429
#endif #endif
...@@ -532,6 +536,8 @@ ...@@ -532,6 +536,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_open_tree 5428 #define __NR_open_tree 5428
#endif #endif
#elif defined __ia64__
#define __NR_open_tree (428 + 1024)
#else #else
#define __NR_open_tree 428 #define __NR_open_tree 428
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment