mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
c554962384
PR: ports/19372 Submitted by: Taguchi, Takesi <taguchi@tohoku.iij.ad.jp> (Maintainer)
35 lines
975 B
Plaintext
35 lines
975 B
Plaintext
diff -ur /usr/ports/x11/XFree86/work/xc/programs/Xserver/hw/xfree86/common_hw/SlowBcopy.c programs/Xserver/hw/xfree86/common_hw/SlowBcopy.c
|
|
--- /usr/ports/x11/XFree86/work/xc/programs/Xserver/hw/xfree86/common_hw/SlowBcopy.c Sun Jan 5 11:58:24 1997
|
|
+++ programs/Xserver/hw/xfree86/common_hw/SlowBcopy.c Tue Dec 8 10:05:56 1998
|
|
@@ -37,7 +37,12 @@
|
|
* Martin Ostermann (ost@comnets.rwth-aachen.de) - Apr.-Sep. 1996
|
|
*/
|
|
|
|
+#ifdef linux
|
|
unsigned long _bus_base(void);
|
|
+#define isJensen() (!_bus_base())
|
|
+#else
|
|
+#define isJensen() 0
|
|
+#endif
|
|
|
|
#ifdef TEST_JENSEN_CODE /* define to test the Sparse addressing on a non-Jensen */
|
|
#define SPARSE (5)
|
|
@@ -50,7 +55,7 @@
|
|
unsigned char *src, *dst;
|
|
int count;
|
|
{
|
|
- if (!_bus_base()) /* Jensen */
|
|
+ if (isJensen())
|
|
{
|
|
unsigned long addr;
|
|
long result;
|
|
@@ -74,7 +79,7 @@
|
|
unsigned char *src, *dst;
|
|
int count;
|
|
{
|
|
- if (!_bus_base()) /* Jensen */
|
|
+ if (isJensen())
|
|
{
|
|
unsigned long addr;
|
|
|