1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/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 Fix some lingering build failures caused by fixing implicit inclusion of 2013-10-31 05:00:50 +00:00
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 Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
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