Re: ioremap()/PCI sickness in 2.4.18-rc2 (FIXED ALMOST)

Richard Henderson
2002-02-23T02:22:58Z

On Fri, Feb 22, 2002 at 12:08:25PM +0100, Steffen Persvold wrote:
> I think you'll have to check again. In LP64 programming models (used on most
> 64-bit OS'es) 'long' is 64 bit. Thus a 'unsigned long' is always safe to use
> for pointer arithmetic since it will be 32 bit on 32bit machines and 64bit on
> 64bit machines.

This isn't something you should count on universally. There
are targets that have a 64-bit long, but a 32-bit pointer.

Seems unlikely to show up on linux, but...

r~