blob: 579b70768c0563ba163440fcf1894bae4940b389 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
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;
|