While getting X working on my NetBSD/cats which is an ARM based platform I've needed to fix the following. - IOPortBase needs to be declared somewhere other than xc/programs/Xserver/hw/xfree86/common/compiler.h xc/programs/Xserver/hw/xfree86/drivers/chips/util/AsmMacros.h otherwise each module ends up with their own version. I chose xc/programs/Xserver/hw/xfree86/os-support/bsd/arm_video.c this is inline with the powerpc variable ioBase. - the int10 module with cause unaligned accesses which aren't allowed on most architecture. My patch prevents these on ARM only, however.
Created attachment 1297 [details] [review] See bug text
I should mention that the diff is actually against the NetBSD xsrc cvs module, but should apply to xorg relatively easily
are the int10 fixes generally applicable (i.e. are they expected to work on other architectures)?
Most platforms do not support unaligned access. i386 is one of the few that do. The diffs could be made more generic as I only with the arm not supporting unlianged accesses.
egbert can probably better comment on this one
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
is int10 speed actually an issue here? if not, we should probably just do byte accesses everywhere we can, for safety. i'm really not keen on doing the 'if it's arm, then we need aligned' thing.
Is there still a problem here? It doesn't seem like it is... reopen if I'm wrong. Also, the patch is very wrong wrt ifdef-fu, removing patch keyword.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.