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: {make,set,swap}context broken on powerpc32


Jakub Jelinek wrote:

On Tue, Dec 19, 2006 at 11:15:24AM -0600, Steven Munroe wrote:


This is similar to the patch I submitted on 12/13/06,
http://sources.redhat.com/ml/libc-alpha/2006-12/msg00115.html.



I don't understand the getcontext/swapcontext bits in the patch.
There is no need to touch oldctx->uc_mcontext.uc_regs when
oldctx is immediately passed as first argument to swapcontext(2),
that syscall overwrites it anyway:


If that is true for old versions of the kernels as well?

If all versions of kernel where __ASSUME_SWAPCONTEXT_SYSCALL is defined, sets the uc_regs pointer to at least double word then just the makecontext change is required.

I was just being careful.


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