Messages in this thread |  | | Date | Wed, 08 Nov 2000 18:06:22 -0500 | From | Jeff Garzik <> | Subject | Re: accessing on-card ram/rom |
| |
hiren_mehta@agilent.com wrote: > I looked at the IO-mapping.txt file. It says that > on x86 architecture it should not make any difference. > It also says that "on x86 it _is_ the same memory space. So > on x86 it actually works to just dereference a pointer".
> Any inputs on this ?
Don't depend on architecture-specific guarantees like this, it could change, etc.
Use ioremap, it's portable, it's standard, it's the way to go. ;-)
Jeff
-- Jeff Garzik | "When I do this, my computer freezes." Building 1024 | -user MandrakeSoft | "Don't do that." | -level 1 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |