1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/sys/dev/drm
Eitan Adler 7a22215c53 Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

Discussed with:	-arch, rdivacky
Reviewed by:	cperciva
2013-11-30 22:17:27 +00:00
..
ati_pcigart.c Now that we properly set write-combining on the pages that back the GART, 2010-04-22 18:47:30 +00:00
drm_agpsupport.c Do a sweep of the tree replacing calls to pci_find_extcap() with calls to 2011-03-23 13:10:15 +00:00
drm_atomic.h
drm_auth.c
drm_bufs.c re-write scatter gather memory allocation yet again... 2010-04-22 18:44:23 +00:00
drm_context.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
drm_dma.c
drm_drawable.c
drm_drv.c Make drm(4) build, if not work reliably, on PowerPC. 2010-11-16 03:43:06 +00:00
drm_fops.c Streamline use of cdevpriv and correct some corner cases. 2012-08-15 16:19:39 +00:00
drm_hashtab.c Address some WITNESS panics that occur when using the via driver. 2010-04-23 14:48:30 +00:00
drm_hashtab.h
drm_internal.h
drm_ioctl.c
drm_irq.c fix atomic_set_xxx misuse in drm 2010-12-11 10:18:05 +00:00
drm_linux_list.h
drm_lock.c
drm_memory.c Make drm(4) build, if not work reliably, on PowerPC. 2010-11-16 03:43:06 +00:00
drm_mm.c Address some WITNESS panics that occur when using the via driver. 2010-04-23 14:48:30 +00:00
drm_mm.h
drm_pci.c
drm_pciids.h Add support for ATI Radeon HD 4250. 2010-08-03 16:30:56 +00:00
drm_sarea.h
drm_scatter.c Replace kernel virtual address space allocation with vmem. This provides 2013-08-07 06:21:20 +00:00
drm_sman.c Address some WITNESS panics that occur when using the via driver. 2010-04-23 14:48:30 +00:00
drm_sman.h
drm_sysctl.c Fix display of the drm sysctls. 2011-04-23 23:11:44 +00:00
drm_vm.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
drm.h
drmP.h Switch the vm_object mutex to be a rwlock. This will enable in the 2013-03-09 02:32:23 +00:00
i915_dma.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
i915_drm.h
i915_drv.c
i915_drv.h Do not define bool/true/false if the symbols already exist. 2011-12-12 18:43:24 +00:00
i915_irq.c
i915_mem.c
i915_reg.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
i915_suspend.c
mach64_dma.c Fix white spaces. 2013-04-23 18:30:33 +00:00
mach64_drm.h
mach64_drv.c
mach64_drv.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
mach64_irq.c
mach64_state.c
mga_dma.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
mga_drm.h
mga_drv.c
mga_drv.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
mga_irq.c
mga_state.c
mga_ucode.h
mga_warp.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
r128_cce.c re-write scatter gather memory allocation yet again... 2010-04-22 18:44:23 +00:00
r128_drm.h
r128_drv.c
r128_drv.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
r128_irq.c
r128_state.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
r300_cmdbuf.c
r300_reg.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
r600_blit.c Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
r600_cp.c Now that we properly set write-combining on the pages that back the GART, 2010-04-22 18:47:30 +00:00
r600_microcode.h
radeon_cp.c Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
radeon_cs.c Make drm(4) build, if not work reliably, on PowerPC. 2010-11-16 03:43:06 +00:00
radeon_drm.h
radeon_drv.c
radeon_drv.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
radeon_irq.c
radeon_mem.c
radeon_microcode.h
radeon_state.c In sys/dev/drm/radeon_state.c, use the correct printf length modifiers 2011-12-30 02:07:50 +00:00
savage_bci.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
savage_drm.h
savage_drv.c
savage_drv.h
savage_state.c
sis_drm.h
sis_drv.c
sis_drv.h
sis_ds.c
sis_ds.h
sis_mm.c
tdfx_drv.c
tdfx_drv.h
via_3d_reg.h Welcome drm support for VIA unichrome chips. 2010-01-31 14:30:39 +00:00
via_dma.c Cast VIA_READ to (void) where the result is unused. 2012-11-09 14:46:23 +00:00
via_dmablit.c Cast VIA_READ to (void) where the result is unused. 2012-11-09 14:46:23 +00:00
via_dmablit.h Welcome drm support for VIA unichrome chips. 2010-01-31 14:30:39 +00:00
via_drm.h Welcome drm support for VIA unichrome chips. 2010-01-31 14:30:39 +00:00
via_drv.c Welcome drm support for VIA unichrome chips. 2010-01-31 14:30:39 +00:00
via_drv.h Welcome drm support for VIA unichrome chips. 2010-01-31 14:30:39 +00:00
via_irq.c Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
via_map.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
via_mm.c Rework how drm maps are handled. 2010-04-22 18:21:25 +00:00
via_verifier.c Welcome drm support for VIA unichrome chips. 2010-01-31 14:30:39 +00:00
via_verifier.h Welcome drm support for VIA unichrome chips. 2010-01-31 14:30:39 +00:00
via_video.c fx->lock is used as an index, correct test case. 2010-04-28 10:33:41 +00:00