From b396bf63a5fc92a0b6d5a8a384ea548876e1b59e Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 13 Jan 2015 18:46:43 +0300 Subject: [PATCH] mips: enable indirect ipc subcall support * linux/mips/syscallent-n32.h [LINUX_MIPSN32]: Define SYS_socket_subcall, include "subcall.h". * linux/mips/syscallent-n64.h [LINUX_MIPSN64]: Likewise. * linux/mips/syscallent-o32.h [LINUX_MIPSO32]: Likewise. --- linux/mips/syscallent-n32.h | 6 +++++- linux/mips/syscallent-n64.h | 11 ++++++++--- linux/mips/syscallent-o32.h | 11 ++++++++--- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/linux/mips/syscallent-n32.h b/linux/mips/syscallent-n32.h index 6e80132c..2a8ad22a 100644 --- a/linux/mips/syscallent-n32.h +++ b/linux/mips/syscallent-n32.h @@ -321,9 +321,13 @@ [6318] = { 2, TD, sys_memfd_create, "memfd_create", }, [6319] = { 3, TD, sys_bpf, "bpf", }, [6320] = { 5, TD|TF|TP|SE|SI, sys_execveat, "execveat", }, +[6321 ... 6399] = { }, + +# define SYS_socket_subcall 6400 +# include "subcall.h" #else -#include "syscallent-n32-stub.h" +# include "syscallent-n32-stub.h" #endif diff --git a/linux/mips/syscallent-n64.h b/linux/mips/syscallent-n64.h index dd4d7d40..f3f30870 100644 --- a/linux/mips/syscallent-n64.h +++ b/linux/mips/syscallent-n64.h @@ -317,11 +317,16 @@ [5314] = { 2, TD, sys_memfd_create, "memfd_create", }, [5315] = { 3, TD, sys_bpf, "bpf", }, [5316] = { 5, TD|TF|TP|SE|SI, sys_execveat, "execveat", }, +[5317 ... 5399] = { }, + +# define SYS_socket_subcall 5400 +# include "subcall.h" + +/* end of Linux N64 */ [SYS_socket_subcall + SYS_socket_nsubcalls + SYS_ipc_nsubcalls ... 5999] = { }, #else -#include "syscallent-n64-stub.h" +# include "syscallent-n64-stub.h" +/* end of Linux N64 */ [5400 ... 5999] = { }, #endif - -[5317 ... 5999] = { }, /* end of Linux N64 */ diff --git a/linux/mips/syscallent-o32.h b/linux/mips/syscallent-o32.h index bd35aa47..59c24da2 100644 --- a/linux/mips/syscallent-o32.h +++ b/linux/mips/syscallent-o32.h @@ -357,11 +357,16 @@ [4354] = { 2, TD, sys_memfd_create, "memfd_create", }, [4355] = { 3, TD, sys_bpf, "bpf", }, [4356] = { 5, TD|TF|TP|SE|SI, sys_execveat, "execveat", }, +[4357 ... 4399] = { }, + +# define SYS_socket_subcall 4400 +# include "subcall.h" + +/* end of Linux o32 */ [SYS_socket_subcall + SYS_socket_nsubcalls + SYS_ipc_nsubcalls ... 4999] = { }, #else -#include "syscallent-o32-stub.h" +# include "syscallent-o32-stub.h" +/* end of Linux o32 */ [4400 ... 4999] = { }, #endif - -[4357 ... 4999] = { }, /* end of Linux o32 */ -- 2.40.0