Messages in this thread Patch in this message | | | Date | Thu, 24 Apr 2003 17:23:43 +0200 (MEST) | From | mikpe@csd ... | Subject | [PATCH][2.5.68] x86_64 getrusage breakage in ia32 emulation |
| |
2.5.68 with IA32 emulation enabled fails in the linking step. The obsolete sys32_getrusage() wasn't deleted, but it references put_rusage() which _was_ deleted, resulting in a linkage error. Simply removing sys32_getrusage() fixes the problem.
/Mikael
--- linux-2.5.68/arch/x86_64/ia32/sys_ia32.c.~1~ 2003-04-20 13:08:16.000000000 +0200 +++ linux-2.5.68/arch/x86_64/ia32/sys_ia32.c 2003-04-24 15:07:03.000000000 +0200 @@ -861,24 +861,6 @@ return compat_sys_wait4(pid, stat_addr, options, NULL); } - -extern asmlinkage long -sys_getrusage(int who, struct rusage *ru); - -asmlinkage long -sys32_getrusage(int who, struct rusage32 *ru) -{ - struct rusage r; - int ret; - mm_segment_t old_fs = get_fs(); - - set_fs (KERNEL_DS); - ret = sys_getrusage(who, &r); - set_fs (old_fs); - if (put_rusage (ru, &r)) return -EFAULT; - return ret; -} - int sys32_ni_syscall(int call) { printk(KERN_INFO "IA32 syscall %d from %s not implemented\n", call, - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |