Title: drm_bufs.h and ia64

In xc / programs / Xserver / hw / xfree86 / os-support / linux / drm / kernel / drm_bufs.h this piece of code can be found:

int DRM(addmap)( struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg ) {
// snipped
        switch ( map->type ) {
        case _DRM_REGISTERS:
        case _DRM_FRAME_BUFFER:
#if !defined(__sparc__) && !defined(__alpha__)
                if ( map->offset + map->size < map->offset ||
                     map->offset < virt_to_phys(high_memory) ) {
                        DRM(free)( map, sizeof(*map), DRM_MEM_MAPS );
                        return -EINVAL;
                }
#endif
//snipped
        }
}

In the kernel sources the !defined line reads:

#if !defined(__sparc__) && !defined(__alpha__) && !defined(__ia64__)

Could anyone please explain which version is the corrcet one for ia64 and why the check should be included or excluded?

TIA

Johannes

Reply via email to