src/video/Xext/Xxf86dga/XF86DGA2.c
changeset 1176 dd2a8deeb26d
parent 1168 045f186426e1
child 1226 d05306f0dc21
equal deleted inserted replaced
1175:867f521591e5 1176:dd2a8deeb26d
   955         /* Warning: On PPC, the size and virtual need to be offset by:
   955         /* Warning: On PPC, the size and virtual need to be offset by:
   956            (((long)finfo.smem_start) -
   956            (((long)finfo.smem_start) -
   957            (((long)finfo.smem_start)&~(PAGE_SIZE-1)))
   957            (((long)finfo.smem_start)&~(PAGE_SIZE-1)))
   958          */
   958          */
   959         base = 0;
   959         base = 0;
   960         size = finfo.smem_len;
   960         size = pMap->size = finfo.smem_len;
   961     }
   961     }
   962 #else
   962 #else
   963 	return False;
   963 	return False;
   964 #endif
   964 #endif
   965     pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE, 
   965     pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE,