Messages in this thread |  | | Date | Fri, 22 Feb 2002 18:22:31 -0800 | From | Richard Henderson <> | Subject | Re: ioremap()/PCI sickness in 2.4.18-rc2 (FIXED ALMOST) |
| |
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~ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |