RE: Regarding select() on PPC
From: Sadashiiv, Halesh <hidden>
Date: 2008-09-23 05:01:15
-----Original Message----- From: Benjamin Herrenschmidt [mailto:benh@kernel.crashing.org] Sent: Tuesday, September 23, 2008 10:26 AM To: Sadashiiv, Halesh Cc: Josh Boyer; <redacted> Subject: RE: Regarding select() on PPC On Tue, 2008-09-23 at 10:20 +0530, Sadashiiv, Halesh wrote:quoted
Hi, The below testcase requires to exit with setting errno as EINVAL, as
per
quoted
the man page. I tested this on ARM, I686, PPC64 it was fine, for the same on PPC32
it
quoted
used exit with errno set as EFAULT. On further investigation found there was some long obsolete code in arch/powerpc/kernel/syscalls.c (function ppc_select()), which was written in 2.2.0 kernel for PPC32 specific , which resulted in
EFAULT.
quoted
This needs to be verified, I have proposed patch for PPC32, Please
check
quoted
the link http://article.gmane.org/gmane.linux.kernel/735922I'm trying to sort out how obsolete it actually is and see if we can remove the whole thing.
Ok...once you verified please let me know.
Your patch should be submitted to the linuxppc-dev mailing list btw.
Will do that.
Ben.
Thanks, Halesh ------------------------------------------------------------------- This email is confidential and intended only for the use of the = individual or entity named above and may contain information that is = privileged. If you are not the intended recipient, you are notified that = any dissemination, distribution or copying of this email is strictly = prohibited. If you have received this email in error, please notify us = immediately by return email or telephone and destroy the original = message. - This mail is sent via Sony Asia Pacific Mail Gateway. -------------------------------------------------------------------