freebsd-nq/sys/mips/rmi
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
..
dev
board.c
board.h
bus_space_rmi_pci.c
bus_space_rmi.c
files.xlr
fmn.c
interrupt.h
intr_machdep.c
iodi.c
iomap.h
Makefile.msgring
mpwait.S
msgring_xls.c
msgring_xls.cfg
msgring.c
msgring.cfg
msgring.h
pcibus.h
pic.h
rmi_boot_info.h
rmi_mips_exts.h
rootfs_list.txt
std.xlr
tick.c
uart_bus_xlr_iodi.c
uart_cpu_mips_xlr.c
xlr_csum_nocopy.S
xlr_i2c.c
xlr_machdep.c
xlr_pci.c
xlr_pcmcia.c
xls_ehci.c