freebsd-dev/sys/dev/hwpmc
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
..
hwpmc_amd.c
hwpmc_amd.h
hwpmc_arm.c
hwpmc_core.c Fix a >80 character long line, introduced in my previous commit. 2013-08-25 12:02:20 +00:00
hwpmc_core.h
hwpmc_ia64.c
hwpmc_intel.c Complete r250097: 2013-04-30 14:56:41 +00:00
hwpmc_logging.c Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
hwpmc_mips24k.c
hwpmc_mips.c
hwpmc_mod.c Remove local change leftover, this should never have been part of 2013-09-20 23:10:52 +00:00
hwpmc_mpc7xxx.c Refactor PowerPC hwpmc(4) driver into generic and specific. More refactoring 2013-09-03 00:34:18 +00:00
hwpmc_octeon.c
hwpmc_pentium.c
hwpmc_pentium.h
hwpmc_piv.c
hwpmc_piv.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
hwpmc_powerpc.c Fix the build. 2013-09-05 01:13:26 +00:00
hwpmc_powerpc.h Fix hwpmc(4) for 32-bit PowerPC. 2013-09-04 04:11:38 +00:00
hwpmc_ppro.c
hwpmc_ppro.h
hwpmc_soft.c malloc(9) cannot return NULL if M_WAITOK flag is specified. 2013-04-30 15:59:22 +00:00
hwpmc_soft.h
hwpmc_sparc64.c
hwpmc_tsc.c
hwpmc_tsc.h
hwpmc_uncore.c
hwpmc_uncore.h
hwpmc_x86.c
hwpmc_xscale.c
hwpmc_xscale.h
pmc_events.h Remove the duplicate LLC_MISS event and put it in the right order. 2013-08-29 13:52:51 +00:00