[Patch] aarch64: Fix tst-makecontext3 in ILP32 mode.

Steve Ellcey sellcey@cavium.com
Wed Aug 30 16:17:00 GMT 2017


On Thu, 2017-08-17 at 08:32 -0700, Steve Ellcey wrote:
> On Wed, 2017-08-16 at 10:01 +0200, Andreas Schwab wrote:
> > 
> > On Aug 15 2017, Steve Ellcey <sellcey@cavium.com> wrote:
> >  
> > > 
> > > @@ -66,7 +66,7 @@ __makecontext (ucontext_t *ucp, void (*func)
> > > (void), int argc, ...)
> > >      if (i < 8)
> > >        ucp->uc_mcontext.regs[i] = va_arg (ap, unsigned long int);
> > I think you want to use uint64_t here as well.
> > 
> > Andreas.
> I agree, I will make that change.
> 
> Steve Ellcey
> sellcey@cavium.com

Here is an updated patch.  Is this OK to check in now?  It is only
needed for ILP32 aarch64 but it is a correct standalone change and it
would be nice to have it in the mainline.

Steve Ellcey
sellcey@cavium.com


2017-08-30  Steve Ellcey  <sellcey@cavium.com>

	* sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
	Use pointer to uint64_t instead of long int for sp.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: aarch64-ilp32-makecontext.patch
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170830/0d5c8a67/attachment.bin>


More information about the Libc-alpha mailing list