On Tue, 2009-10-27 at 16:56 +0100, Mark Kettenis wrote:

> That said, the way in/out are used in the xserver and associated (PCI)
> drivers is really bogus.  Their usage should be replaced by a
> mechanism similar to how memory mapped io is handled.  PCI drivers
> should really use pci_device_map_range() to "map" io space just like
> mmio space such that they can work on architectures that have multiple
> PCI domains.

While domainful PCI chipsets typically provide this functionality,
normal x86 kit does not.  There's no especially good way to emulate it
either, since even if the segfault handler told you i/o direction you'd
still need to know the instruction length in the general case.

So, no, you really can't force memory mapped i/o space access and still
remain portable to x86, at least not without adding a modest amount of
code to the kernel.

- ajax

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
xorg-devel mailing list
xorg-devel@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to