Index: qemu-0.9.0/linux-user/syscall.c =================================================================== --- qemu-0.9.0.orig/linux-user/syscall.c +++ qemu-0.9.0/linux-user/syscall.c @@ -147,6 +147,7 @@ type name (type1 arg1,type2 arg2,type3 a #define __NR_sys_fadvise64 __NR_fadvise64 #define __NR_sys_tgkill __NR_tgkill #define __NR_sys_clone __NR_clone +#define __NR_sys_sched_getaffinity __NR_sched_getaffinity #if defined(__alpha__) || defined (__ia64__) || defined(__x86_64__) #define __NR__llseek __NR_lseek @@ -170,6 +171,7 @@ _syscall3(int,sys_syslog,int,type,char*, _syscall4(int,sys_fadvise64,int,fd,loff_t,offset,loff_t,len,int,advice) _syscall3(int,sys_tgkill,int,tgid,int,pid,int,sig) _syscall5(int,sys_clone, int, flags, void *, child_stack, int *, parent_tidptr, struct user_desc *, newtls, int *, child_tidptr) +_syscall3(int,sys_sched_getaffinity,pid_t,pid,unsigned int,cpusetsize,void*,mask) #ifdef __NR_exit_group _syscall1(int,exit_group,int,error_code) #endif @@ -4248,6 +4250,11 @@ long do_syscall(void *cpu_env, int num, ret = get_errno(sys_tgkill((int)arg1, (int)arg2, (int)arg3)); break; #endif +#ifdef TARGET_NR_sched_getaffinity + case TARGET_NR_sched_getaffinity: + ret = get_errno(sys_sched_getaffinity((pid_t)arg1, (unsigned int)arg2, (void*)arg3)); + break; +#endif default: unimplemented: gemu_log("qemu: Unsupported syscall: %d\n", num);