~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to hw/xfree86/os-support/linux/lnx_video.c

Tags: 2:1.10.1-2
* Build xserver-xorg-core-udeb on hurd-i386.  Thanks, Samuel Thibault!
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
      !defined(__mc68000__) && \
62
62
      !defined(__sparc__) && \
63
63
      !defined(__mips__) && \
 
64
      !defined(__nds32__) && \
64
65
      !defined(__arm__)
65
66
 
66
67
/*
460
461
                   " (0x%08lx,0x%lx) (%s)\n", Base, Size,
461
462
                   strerror(errno));
462
463
    }
463
 
    DebugF("base: %lx aligned base: %lx\n",base, base + alignOff);
 
464
    DebugF("base: %lx aligned base: %lx\n",base, (char *)base + alignOff);
464
465
    return (char *)base + alignOff;
465
466
}
466
467
#endif /* !(__sparc__) */
519
520
#endif
520
521
        }
521
522
        close(fd);
522
 
#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && !defined(__arm__) && !defined(__m32r__)
 
523
#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && !defined(__arm__) && !defined(__m32r__) && !defined(__nds32__)
523
524
        if (ioperm(0, 1024, 1) || iopl(3)) {
524
525
                if (errno == ENODEV)
525
526
                        ErrorF("xf86EnableIOPorts: no I/O ports found\n");
548
549
#if defined(__powerpc__)
549
550
        munmap(ioBase, 0x20000);
550
551
        ioBase = NULL;
551
 
#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__arm__) && !defined(__s390__) && !defined(__m32r__)
 
552
#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__arm__) && !defined(__s390__) && !defined(__m32r__) && !defined(__nds32__)
552
553
        iopl(0);
553
554
        ioperm(0, 1024, 0);
554
555
#endif