diff options
-rw-r--r-- | linux-user/i386/syscall_nr.h | 1 | ||||
-rw-r--r-- | linux-user/syscall.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/linux-user/i386/syscall_nr.h b/linux-user/i386/syscall_nr.h index 9fa6be9..6fe967d 100644 --- a/linux-user/i386/syscall_nr.h +++ b/linux-user/i386/syscall_nr.h @@ -271,4 +271,5 @@ #define TARGET_NR_clock_getres (TARGET_NR_timer_create+7) #define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create+8) +#define TARGET_NR_tgkill 270 #define TARGET_NR_utimes 271 diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e380bc7..e392634 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -144,6 +144,7 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \ #define __NR_sys_getdents64 __NR_getdents64 #define __NR_sys_rt_sigqueueinfo __NR_rt_sigqueueinfo #define __NR_sys_syslog __NR_syslog +#define __NR_sys_tgkill __NR_tgkill #if defined(__alpha__) || defined (__ia64__) || defined(__x86_64__) #define __NR__llseek __NR_lseek @@ -164,6 +165,7 @@ _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh); _syscall3(int,sys_rt_sigqueueinfo,int,pid,int,sig,siginfo_t *,uinfo) _syscall3(int,sys_syslog,int,type,char*,bufp,int,len) +_syscall3(int,sys_tgkill,int,tgid,int,pid,int,sig) #ifdef __NR_exit_group _syscall1(int,exit_group,int,error_code) #endif @@ -4604,6 +4606,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, break; #endif +#ifdef TARGET_NR_tgkill + case TARGET_NR_tgkill: + ret = get_errno(sys_tgkill((int)arg1, (int)arg2, (int)arg3)); + break; +#endif + default: unimplemented: gemu_log("qemu: Unsupported syscall: %d\n", num); |