[PATCH] powerpc/4xx/ocm: fix compiler error

christophe leroy christophe.leroy at c-s.fr
Sun Dec 23 20:58:04 AEDT 2018



Le 23/12/2018 à 10:31, Segher Boessenkool a écrit :
> On Sun, Dec 23, 2018 at 09:29:44AM +0100, Gabriel Paubert wrote:
>> •   The fetch access is to guarded storage and MSR[IR] = 1.
> 
> That is architected, yes.  You get an ISI if IR=1 and (N=1 or G=1).
> 

If IR=0, mappings don't apply. So in 4xx/ocm, this mapping with 
_PAGE_EXEC and _PAGE_GUARDED at the same time seems pointless.

A standard ioremap() should do it (ie without exec), or a non guarded 
exec mapping if execution is expected for this area.

Christophe

---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus



More information about the Linuxppc-dev mailing list