mk/image.mk: Ship /init in initramfs
[openadk.git] / package / xorg-server / patches / patch-hw_xfree86_common_compiler_h
blob824744f53daa8c28c28656d56d109008edbb67f4
1 from alpinelinux
3 --- xorg-server-1.18.0.orig/hw/xfree86/common/compiler.h        2015-10-28 19:15:36.000000000 +0100
4 +++ xorg-server-1.18.0/hw/xfree86/common/compiler.h     2016-01-08 01:41:49.582326445 +0100
5 @@ -525,26 +525,26 @@ xf86WriteMmio32Le(__volatile__ void *bas
6  #define PORT_SIZE short
7  #endif
8  
9 -_X_EXPORT unsigned int IOPortBase;      /* Memory mapped I/O port area */
10 +_X_EXPORT volatile unsigned char *ioBase;  /* Memory mapped I/O port area */
12  static __inline__ void
13  outb(unsigned PORT_SIZE port, unsigned char val)
14  {
15 -    *(volatile unsigned char *) (((unsigned PORT_SIZE) (port)) + IOPortBase) =
16 +    *(volatile unsigned char *) (((unsigned PORT_SIZE) (port)) + ioBase) =
17          val;
18  }
20  static __inline__ void
21  outw(unsigned PORT_SIZE port, unsigned short val)
22  {
23 -    *(volatile unsigned short *) (((unsigned PORT_SIZE) (port)) + IOPortBase) =
24 +    *(volatile unsigned short *) (((unsigned PORT_SIZE) (port)) + ioBase) =
25          val;
26  }
28  static __inline__ void
29  outl(unsigned PORT_SIZE port, unsigned int val)
30  {
31 -    *(volatile unsigned int *) (((unsigned PORT_SIZE) (port)) + IOPortBase) =
32 +    *(volatile unsigned int *) (((unsigned PORT_SIZE) (port)) + ioBase) =
33          val;
34  }
36 @@ -552,21 +552,21 @@ static __inline__ unsigned int
37  inb(unsigned PORT_SIZE port)
38  {
39      return *(volatile unsigned char *) (((unsigned PORT_SIZE) (port)) +
40 -                                        IOPortBase);
41 +                                        ioBase);
42  }
44  static __inline__ unsigned int
45  inw(unsigned PORT_SIZE port)
46  {
47      return *(volatile unsigned short *) (((unsigned PORT_SIZE) (port)) +
48 -                                         IOPortBase);
49 +                                         ioBase);
50  }
52  static __inline__ unsigned int
53  inl(unsigned PORT_SIZE port)
54  {
55      return *(volatile unsigned int *) (((unsigned PORT_SIZE) (port)) +
56 -                                       IOPortBase);
57 +                                       ioBase);
58  }
60  #if defined(__mips__)
61 @@ -758,7 +758,7 @@ inl(unsigned short port)
62      return xf86ReadMmio32Le((void *) ioBase, port);
63  }
65 -#elif defined(__arm__) && defined(__linux__)
66 +#elif defined(__arm__) && defined(__GLIBC__)
68  /* for Linux on ARM, we use the LIBC inx/outx routines */
69  /* note that the appropriate setup via "ioperm" needs to be done */