Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Hinds <dhinds@hyper.stanford.edu>
Subject: Re: Patches for PCMCIA on UDB
Date: Tue, 2 Apr 1996 11:13:28 -0800 (PST)	[thread overview]
Message-ID: <199604021913.LAA14172@hyper.stanford.edu> (raw)
In-Reply-To: <Pine.LNX.3.91.960402074030.12990D-100000@linux.cs.Helsinki.FI>

> > +#ifdef USE_MEM_ACCESS_ROUTINES
> > +	    *ptr = _readb(sys);
> > +#else
> >  	    *ptr = *sys;
> > +#endif
> >  	}
> >      }
> >  } /* read_cis_mem */
> 
> The above kind of horror it too ugly to survive. I don't care _too_ much, 
> as pcmcia isn't in the kernel, but I'd rather not even be distantly 
> associated with anything like this.
> 
> Remember: #ifdef is _ugly_, and should be avoided at all costs.
> 
> Use "readb()" (without the underscore), and it should work on all 
> platforms. No ifdefs, no direct pointer accesses. The alpha isn't the 
> only architecture that needs something like this (PPC has the PCI address 
> space shifted up in memory space etc).

I've already made this change (readb/writeb for all platforms, no
conditional code) for the next release.  I put it in before I got the
other Alpha patches, though, so the others will be in 2.8.11.

	-- Dave Hinds

  parent reply	other threads:[~1996-04-02 19:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.91.960402074030.12990D-100000@linux.cs.Helsinki.FI>
1996-04-02  6:28 ` Patches for PCMCIA on UDB Jim Paradis
1996-04-02 19:13 ` David Hinds [this message]
     [not found] <199602292030.MAA13819@vulcan.craftwork.com>
1996-04-01 22:32 ` Jim Paradis
1996-04-02  4:45   ` Linus Torvalds
1996-04-03 20:19   ` David Hinds
1996-04-05 21:27   ` David Hinds
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox