mk/image.mk: Ship /init in initramfs
[openadk.git] / package / xorg-server / patches / patch-hw_xfree86_os-support_linux_lnx_video_c
bloba3929d9f9e47883a0c5ea5c00813ca29a4e60e71
1 --- xorg-server-1.18.0.orig/hw/xfree86/os-support/linux/lnx_video.c     2015-08-03 16:44:08.000000000 +0200
2 +++ xorg-server-1.18.0/hw/xfree86/os-support/linux/lnx_video.c  2016-01-08 01:41:49.618324040 +0100
3 @@ -79,7 +79,7 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem)
4  /* I/O Permissions section                                                 */
5  /***************************************************************************/
6  
7 -#if defined(__powerpc__)
8 +#if defined(__powerpc__) || defined(__mips__)
9  volatile unsigned char *ioBase = NULL;
11  #ifndef __NR_pciconfig_iobase
12 @@ -90,7 +90,11 @@ static Bool
13  hwEnableIO(void)
14  {
15      int fd;
16 +#ifdef __powerpc__
17      unsigned int ioBase_phys = syscall(__NR_pciconfig_iobase, 2, 0, 0);
18 +#else
19 +    unsigned int ioBase_phys = 0x1fd00000;
20 +#endif
22      fd = open("/dev/mem", O_RDWR);
23      if (ioBase == NULL) {