freebsd-ports/x11-servers/XFree86-4-Server/files/patch-bsdResource.c
Dejan Lesjak b450fc1e84 - Install X server setuid root by default, and provide a switch
NO_SUID_XSERVER to disable this. The end result is same as it was before
  with x11/wrapper installed as the code from there is included in X
  server. It is also the same as xorg-server port does (from which this
  changes were taken). This should conclude removal of dependency on
  x11/wrapper from meta port for above reasons. [1]

- (patch-bsdResource.c) Correct the ranges of the bus resource windows on
  sparc64. This makes PCI video cards work that hang off directly from
  the Host-to-PCI bridge in machines like the Blade 100. [2]

- (patch-HALlib_bindings.c patch-mga_driver.c) Revert the MGA HALlib
  MGASetDisplayStart interface back to HALSetDisplayStart (taken from
  upstream CVS) [3]

Noticed by:	(bugsgrief at bugsgrief.net) [1]
Submitted by:	marius [2]
Reported and tested by:	Steven Friedrich (FreeBSD at InsightBB.com) [3]
2005-06-20 18:30:39 +00:00

68 lines
2.1 KiB
C

--- programs/Xserver/hw/xfree86/os-support/bsd/bsdResource.c.orig Fri Apr 23 21:54:07 2004
+++ programs/Xserver/hw/xfree86/os-support/bsd/bsdResource.c Tue May 17 00:48:36 2005
@@ -18,7 +18,7 @@
#ifdef INCLUDE_XF86_NO_DOMAIN
-#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__)
+#if defined(__alpha__) || defined(__amd64__)
resPtr
xf86BusAccWindowsFromOS(void)
@@ -112,7 +112,7 @@
return ret;
}
-#elif defined(__powerpc__)
+#elif defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__)
resPtr
xf86BusAccWindowsFromOS(void)
@@ -123,7 +123,11 @@
RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock);
ret = xf86AddResToList(ret, &range, -1);
+#if defined(__sparc__) || defined(__sparc64__)
+ RANGE(range, 0x00000000, 0x00ffffff, ResExcIoBlock);
+#else
RANGE(range, 0x00000000, 0x0000ffff, ResExcIoBlock);
+#endif
ret = xf86AddResToList(ret, &range, -1);
return ret;
}
@@ -137,7 +141,11 @@
RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock);
ret = xf86AddResToList(ret, &range, -1);
+#if defined(__sparc__) || defined(__sparc64__)
+ RANGE(range, 0x00000000, 0x00ffffff, ResExcIoBlock);
+#else
RANGE(range, 0x00000000, 0x0000ffff, ResExcIoBlock);
+#endif
ret = xf86AddResToList(ret, &range, -1);
return ret;
}
@@ -153,7 +161,11 @@
RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock);
ret = xf86AddResToList(ret, &range, -1);
+#if defined(__sparc__) || defined(__sparc64__)
+ RANGE(range, 0x00000000, 0x00ffffff, ResExcIoBlock);
+#else
RANGE(range, 0x00000000, 0x0000ffff, ResExcIoBlock);
+#endif
ret = xf86AddResToList(ret, &range, -1);
return ret;
}
@@ -175,7 +187,11 @@
ret = xf86AddResToList(ret, &range, -1);
RANGE(range, 0x00000000, 0x00000000, ResExcIoBlock);
ret = xf86AddResToList(ret, &range, -1);
+#if defined(__sparc__) || defined(__sparc64__)
+ RANGE(range, 0x00ffffff, 0x00ffffff, ResExcIoBlock);
+#else
RANGE(range, 0x0000ffff, 0x0000ffff, ResExcIoBlock);
+#endif
ret = xf86AddResToList(ret, &range, -1);
return ret;