patch-hw_xfree86_os-support_linux_lnx_video_c 854 B

1234567891011121314151617181920212223
  1. --- xorg-server-1.15.0.orig/hw/xfree86/os-support/linux/lnx_video.c 2013-12-27 18:38:52.000000000 +0100
  2. +++ xorg-server-1.15.0/hw/xfree86/os-support/linux/lnx_video.c 2014-03-21 13:14:06.821293270 +0100
  3. @@ -473,7 +473,7 @@ unmapVidMem(int ScreenNum, pointer Base,
  4. /* I/O Permissions section */
  5. /***************************************************************************/
  6. -#if defined(__powerpc__)
  7. +#if defined(__powerpc__) || defined(__mips__)
  8. volatile unsigned char *ioBase = NULL;
  9. #ifndef __NR_pciconfig_iobase
  10. @@ -484,7 +484,11 @@ static Bool
  11. hwEnableIO(void)
  12. {
  13. int fd;
  14. +#ifdef __powerpc__
  15. unsigned int ioBase_phys = syscall(__NR_pciconfig_iobase, 2, 0, 0);
  16. +#else
  17. + unsigned int ioBase_phys = 0x1fd00000;
  18. +#endif
  19. fd = open("/dev/mem", O_RDWR);
  20. if (ioBase == NULL) {