[RFC v7 24/25] powerpc: Deliver SEGV signal on pkey violation

Michael Ellerman mpe at ellerman.id.au
Fri Aug 18 14:48:31 AEST 2017


Ram Pai <linuxram at us.ibm.com> writes:
> On Fri, Aug 11, 2017 at 08:26:30PM +1000, Michael Ellerman wrote:
>> Thiago Jung Bauermann <bauerman at linux.vnet.ibm.com> writes:
>> 
>> > Ram Pai <linuxram at us.ibm.com> writes:
>> >
>> >> The value of the AMR register at the time of exception
>> >> is made available in gp_regs[PT_AMR] of the siginfo.
...
>> 
>> I don't understand why we are putting it in there at all?
>> 
>> Is there some special handling of the actual register on signals? I
>> haven't seen it. In which case the process can get the value of AMR by
>> reading the register. ??
>
> The value of AMR register at the time of the key-exception may not be
> the same when the signal handler is invoked. 

Why not?

cheers


More information about the Linuxppc-dev mailing list