RE: [4/6] Xen VMM #4: HAS_ARCH_DEV_MEM
From: Ian Pratt
Date: Wed Dec 08 2004 - 11:38:04 EST
> Any chance you could put the /dev/mem implementation into a
> separate file, ala drivers/char/devmem.c and avoid the
> ifdefs? ARCH_HAS_DEV_MEM would have to become a CONFIG option then
On most architectures much of the /dev/kmem and /dev/mem implementation
can be shared, so I'm not sure its worth splitting it out into its own
file. I don't think the current ARCH_HAS_DEV_MEM approach is too ugly.
[The reason that read/write is different on arch xen is that we need to
explicitly map/unmap the I/O pages before accesing them].
Ian
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/