1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00
freebsd/sys/dev/etherswitch/arswitch
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
..
arswitch_7240.c Add the support for 802.1q and port based vlans for arswitch. 2013-07-23 14:24:22 +00:00
arswitch_7240.h
arswitch_8216.c Add the support for 802.1q and port based vlans for arswitch. 2013-07-23 14:24:22 +00:00
arswitch_8216.h
arswitch_8226.c Add the support for 802.1q and port based vlans for arswitch. 2013-07-23 14:24:22 +00:00
arswitch_8226.h
arswitch_8316.c Add the support for 802.1q and port based vlans for arswitch. 2013-07-23 14:24:22 +00:00
arswitch_8316.h
arswitch_9340.c Initial commit of AR9340 switch SoC support. 2013-10-16 03:15:52 +00:00
arswitch_9340.h Initial commit of AR9340 switch SoC support. 2013-10-16 03:15:52 +00:00
arswitch_phy.c - Provide necessary includes, that before came via if.h pollution. 2013-10-28 22:26:03 +00:00
arswitch_phy.h
arswitch_reg.c Add the support for 802.1q and port based vlans for arswitch. 2013-07-23 14:24:22 +00:00
arswitch_reg.h Add the support for 802.1q and port based vlans for arswitch. 2013-07-23 14:24:22 +00:00
arswitch_vlans.c - Provide necessary includes, that before came via if.h pollution. 2013-10-28 22:26:03 +00:00
arswitch_vlans.h Add the support for 802.1q and port based vlans for arswitch. 2013-07-23 14:24:22 +00:00
arswitch.c - Provide necessary includes, that before came via if.h pollution. 2013-10-28 22:26:03 +00:00
arswitchreg.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
arswitchvar.h Prepare to link in the AR934x SoC switch support. 2013-10-16 03:19:05 +00:00