[RFC PATCH] ARM: new architecture for Energy Micro's EFM32 Cortex-M3 SoCs

Nicolas Pitre nico at fluxnic.net
Wed Dec 21 15:36:49 EST 2011


On Wed, 21 Dec 2011, Russell King - ARM Linux wrote:

> On Wed, Dec 21, 2011 at 03:48:50PM +0000, Jamie Iles wrote:
> > > +#define __io(a)			__typesafe_io(a)
> > 
> > Do you support io ports on this platform?  If not then perhaps select 
> > NO_IPORT and define __io(a) to 0?
> 
> Do not do that.  Define NO_IOPORT and *do* *not* define __io() at all to
> make drivers which use PCI IO stuff fail at build time.  Don't try to
> frig it into doing a NULL pointer deref.

... especially since this is a !MMU platform and therefore NULL pointer 
derefs won't work as intended.


Nicolas



More information about the linux-arm-kernel mailing list