Root/urjtag/patches/0001-disable-inb-outb.patch

1diff --git a/urjtag/src/tap/parport/direct.c b/urjtag/src/tap/parport/direct.c
2index 10bea4d..bc3bada 100644
3--- a/urjtag/src/tap/parport/direct.c
4+++ b/urjtag/src/tap/parport/direct.c
5@@ -37,6 +37,20 @@
6 #include <urjtag/cable.h>
7 #include "../parport.h"
8 
9+#ifdef __linux__
10+#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) \
11+|| defined(__powerpc__) || defined(__s390__) || defined(__s390x__)\
12+|| defined(__mips__) || defined(__mc68000__) || defined(__sh__)
13+
14+#define NO_SYSIO
15+
16+#define inb(addr) (*(volatile unsigned char *)(addr))
17+#define outb(b,addr) (*(volatile unsigned char *)(addr)) = (b)
18+
19+#endif /* architechtures */
20+#endif /* __linux__ */
21+
22+
23 #if defined(HAVE_INPOUTXX)
24 
25 static HINSTANCE inpout32_dll_handle = NULL;
26@@ -50,7 +64,7 @@ static outfuncPtr Out32;
27 #define inb(p) (Inp32)(p)
28 #define outb(d,p) (Out32)(p,d)
29 
30-#elif defined(HAVE_IOPERM)
31+#elif defined(HAVE_IOPERM) && !defined(NO_SYSIO)
32 
33 #include <sys/io.h>
34 
35

Archive Download this file



interactive