{make,set,swap}context broken on powerpc32

Steven Munroe munroesj@us.ibm.com
Wed Dec 20 04:02:00 GMT 2006


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.



More information about the Libc-alpha mailing list