Created attachment 228684 [details]
x11-servers/xorg-server: fix build on riscv64
With this patch I was able to build x11-servers/xorg-server on a patched riscv64 FreeBSD 13-STABLE. I cannot test if it builds and works on vanilla riscv64. The patch basically tells the build system to use the IO access setup code from ARM for RISC-V, too. It seems to work and I can start an X server (but didn't get a picture due to a configuration issue it seems).
Needs additional QA.
Related to bug #259158 and bug #259159.
If any of the related issues (or this one) should be committed prior to others, please add them to the relevent Depends On or Blocks fields in the order in which they should be addressed.
No objections to this from me. I have no way of testing on risc-V however.