This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] mips/o32: fix internal_syscall5/6/7


On Wed, 16 Aug 2017, Aurelien Jarno wrote:

> > Do you know which is the kernel version which this was not really required?
> > I actually tested on a 3.2 on qemu (as it is the minimum one supported
> > currently).
> 
> According to https://www.linux-mips.org/wiki/Syscall it's required up to
> kernel 2.6.35.

 Well, there is this very comment in the source file concerned:

   The convention was relaxed in Linux with a change applied to the kernel
   GIT repository as commit 96187fb0bc30cd7919759d371d810e928048249d, that
   first appeared in the 2.6.36 release.  Since then the kernel has had
   code that reloads $v0 upon syscall restart and resumes right at the
   SYSCALL instruction, so no special arrangement is needed anymore.

(which is "MIPS: Sanitize restart logics", dated Sep 28, 2010).

  Maciej


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]