Re: [PATCH] powerpc/8xx: use SPRN_EIE and SPRN_EID to enable/disable interrupts

2016-08-19 Thread Christophe Leroy
Le 18/08/2016 à 19:54, Segher Boessenkool a écrit : On Thu, Aug 18, 2016 at 06:52:47PM +0200, Christophe Leroy wrote: Le 18/08/2016 à 18:34, Segher Boessenkool a écrit : On Thu, Aug 18, 2016 at 05:56:02PM +0200, Christophe Leroy wrote: The 8xx has two special registers called EID (External I

Re: [PATCH] powerpc/8xx: use SPRN_EIE and SPRN_EID to enable/disable interrupts

2016-08-18 Thread Segher Boessenkool
On Thu, Aug 18, 2016 at 06:52:47PM +0200, Christophe Leroy wrote: > Le 18/08/2016 à 18:34, Segher Boessenkool a écrit : > >On Thu, Aug 18, 2016 at 05:56:02PM +0200, Christophe Leroy wrote: > >>The 8xx has two special registers called EID (External Interrupt > >>Disable) and EIE (External Interrupt

Re: [PATCH] powerpc/8xx: use SPRN_EIE and SPRN_EID to enable/disable interrupts

2016-08-18 Thread Christophe Leroy
Le 18/08/2016 à 18:34, Segher Boessenkool a écrit : On Thu, Aug 18, 2016 at 05:56:02PM +0200, Christophe Leroy wrote: The 8xx has two special registers called EID (External Interrupt Disable) and EIE (External Interrupt Enable) for clearing/setting EE in MSR. It avoids the three instructions s

Re: [PATCH] powerpc/8xx: use SPRN_EIE and SPRN_EID to enable/disable interrupts

2016-08-18 Thread Segher Boessenkool
On Thu, Aug 18, 2016 at 05:56:02PM +0200, Christophe Leroy wrote: > The 8xx has two special registers called EID (External Interrupt > Disable) and EIE (External Interrupt Enable) for clearing/setting > EE in MSR. It avoids the three instructions set mfmsr/ori/mtmsr or > mfmsr/rlwinm/mtmsr. All 8x

[PATCH] powerpc/8xx: use SPRN_EIE and SPRN_EID to enable/disable interrupts

2016-08-18 Thread Christophe Leroy
The 8xx has two special registers called EID (External Interrupt Disable) and EIE (External Interrupt Enable) for clearing/setting EE in MSR. It avoids the three instructions set mfmsr/ori/mtmsr or mfmsr/rlwinm/mtmsr. We just have to write something in the register to change MSR EE bit. So we writ