source: packages/Xorg/xorg/xserver/xorg-server/patches/010-sync-dev-mem.patch @ 14288

Last change on this file since 14288 was 14288, checked in by lars, 8 years ago

Open /dev/mem with O_SYNC if mtrr is not available or else mmio wont work
properly.

File size: 542 bytes
  • hw/xfree86/os-support/linux/lnx_video.c

    diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
    index 1bd2d57..0ac829c 100644
    a b mapVidMem(int ScreenNum, unsigned long Base, unsigned long Size, int flags) 
    468468        mapflags |= MAP_NONCACHED;  
    469469#endif 
    470470 
    471 #if 0 
     471#ifndef HAVE_MTRR 
    472472    /* this will disappear when people upgrade their kernels */ 
    473473    fd = open(DEV_MEM, 
    474474              ((flags & VIDMEM_READONLY) ? O_RDONLY : O_RDWR) | O_SYNC); 
Note: See TracBrowser for help on using the repository browser.